Skip to content

Commit

Permalink
VAT creation on GCP Batch [VS-1602] (#9106)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcovarr authored Mar 5, 2025
1 parent 57fd941 commit 23d6561
Showing 1 changed file with 11 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -630,10 +630,17 @@ task AnnotateVCF {
# Find where the reference disk should have been mounted on this VM. Note this is referred to as a "candidate
# mount point" because we do not actually confirm this is a reference disk until the following code block.
CANDIDATE_MOUNT_POINT=$(lsblk | sed -E -n 's!.*(/mnt/[a-f0-9]+).*!\1!p')
if [[ -z ${CANDIDATE_MOUNT_POINT} ]]; then
>&2 echo "Could not find a mounted volume that looks like a reference disk, exiting."
exit 1
if [[ -e /cromwell_root/gcs_delocalization.sh ]]
then
# PAPI mount points
CANDIDATE_MOUNT_POINT=$(lsblk | grep -v cromwell_root | sed -E -n 's!.*(/mnt/[a-f0-9]+).*!\1!p')
elif [[ -e /mnt/disks/cromwell_root/gcs_delocalization.sh ]]
then
# GCP Batch mount points
CANDIDATE_MOUNT_POINT=$(lsblk | grep -v cromwell_root | sed -E -n 's!.*(/mnt/disks/[a-f0-9]+).*!\1!p')
else
>&2 echo "Could not find a mounted volume that looks like a reference disk, exiting."
exit 1
fi
# Find one particular reference under the mount path. Note this is not the same reference as was specified in the
Expand Down

0 comments on commit 23d6561

Please sign in to comment.