Skip to content

Commit fbec3c8

Browse files
committed
Bugfix: transferred_to_hpc was not being set after sync finished
1 parent 0f3acb2 commit fbec3c8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

dataflow_transfer/dataflow_transfer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ def process_run(run_dir, sequencer, config):
2222
run.confirm_run_type()
2323

2424
## Transfer already completed. Do nothing.
25-
if run.final_sync_successful:
26-
# Removing the exit code file lets the run retry transfer
25+
if run.final_sync_successful and run.has_status("transferred_to_hpc"):
26+
# Check transfer success both in statusdb and via exit code file
27+
# To restart transfer, remove the exit code file
2728
logger.info(f"Transfer of {run_dir} is finished. No action needed.")
2829
return
2930

0 commit comments

Comments
 (0)