Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS-1526 - Fix error in Extract Manifest Creation causing it to run forever. #9034

Merged
merged 6 commits into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dockstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ workflows:
branches:
- master
- ah_var_store
- gg_VS-1526_DontRunForever
tags:
- /.*/
- name: GvsImportGenomes
Expand Down
13 changes: 9 additions & 4 deletions scripts/variantstore/wdl/GvsExtractCallset.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ task CreateManifestAndOptionallyCopyOutputs {
String? output_gcs_dir
String cloud_sdk_docker
}
meta {
parameter_meta {
# Not `volatile: true` since there shouldn't be a need to re-run this if there has already been a successful execution.
output_vcfs: {
localization_optional: true
Expand All @@ -540,6 +540,9 @@ task CreateManifestAndOptionallyCopyOutputs {
declare -a output_vcf_bytes=(~{sep=' ' output_vcf_bytes})
declare -a output_vcf_index_bytes=(~{sep=' ' output_vcf_index_bytes})

# (Possibly) create a manifest of VCFs and indexes to bulk copy with `gcloud storage cp`.
echo -n > vcf_manifest.txt
gbggrant marked this conversation as resolved.
Show resolved Hide resolved

echo -n >> manifest_lines.txt
for (( i=0; i<${#interval_indices[@]}; ++i));
do
Expand All @@ -551,8 +554,8 @@ task CreateManifestAndOptionallyCopyOutputs {
LOCAL_VCF_INDEX=$(basename $OUTPUT_VCF_INDEX)

if [ -n "${OUTPUT_GCS_DIR}" ]; then
gsutil cp $OUTPUT_VCF ${OUTPUT_GCS_DIR}/
gsutil cp $OUTPUT_VCF_INDEX ${OUTPUT_GCS_DIR}/
echo $OUTPUT_VCF >> vcf_manifest.txt
echo $OUTPUT_VCF_INDEX >> vcf_manifest.txt
OUTPUT_FILE_DEST="${OUTPUT_GCS_DIR}/$LOCAL_VCF"
OUTPUT_FILE_INDEX_DEST="${OUTPUT_GCS_DIR}/$LOCAL_VCF_INDEX"
else
Expand All @@ -568,7 +571,9 @@ task CreateManifestAndOptionallyCopyOutputs {
sort -n manifest_lines.txt | cut -d',' -f 2- >> manifest.txt

if [ -n "$OUTPUT_GCS_DIR" ]; then
gsutil cp manifest.txt ${OUTPUT_GCS_DIR}/
# Copy VCFs, indexes and the manifest to the output directory.
echo manifest.txt >> vcf_manifest.txt
cat vcf_manifest.txt | gcloud storage cp -I ${OUTPUT_GCS_DIR}
fi
>>>
output {
Expand Down
Loading