Skip to content

Commit

Permalink
Ensure archive checksum calculation is complete before transferring
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmero committed Apr 23, 2024
1 parent 69abcca commit 7cb26ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions workflow/rules/transfer.smk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ if delete_on_transfer:
# NOTE: this step uses a Globus data flow, so first we need to create the json file
rule create_globus_json_input:
input:
f"{data_dir}/{{project}}/{transfer_dir}_{{sample}}/logs/{{project}}_{{sample}}_file_counts.txt",
counts=f"{data_dir}/{{project}}/{transfer_dir}_{{sample}}/logs/{{project}}_{{sample}}_file_counts.txt",
checksums=f"{data_dir}/{{project}}/{transfer_dir}_{{sample}}/checksums/{{project}}_{{sample}}_archives.sha1",
output:
f"{data_dir}/{{project}}/{transfer_dir}_{{sample}}/logs/{{project}}_{{sample}}_globus_input.json",
log:
Expand Down Expand Up @@ -45,7 +46,8 @@ else:
# will be successful. Check the Globus dashboard for the status of the transfer.
rule transfer:
input:
f"{data_dir}/{{project}}/{transfer_dir}_{{sample}}/logs/{{project}}_{{sample}}_file_counts.txt",
counts=f"{data_dir}/{{project}}/{transfer_dir}_{{sample}}/logs/{{project}}_{{sample}}_file_counts.txt",
checksums=f"{data_dir}/{{project}}/{transfer_dir}_{{sample}}/checksums/{{project}}_{{sample}}_archives.sha1",
output:
f"{data_dir}/{{project}}/{transfer_dir}_{{sample}}/logs/{{project}}_{{sample}}_transfer.txt",
log:
Expand Down

0 comments on commit 7cb26ad

Please sign in to comment.