Skip to content

Commit b2e8e1d

Browse files
authored
Merge pull request NationalGenomicsInfrastructure#11 from ssjunnebo/fixes
Make sure `transferred_to_hpc` gets set
2 parents 0f3acb2 + b641622 commit b2e8e1d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ignore = [
2020

2121
[project]
2222
name = "dataflow_transfer"
23-
version = "1.0.3"
23+
version = "1.0.4"
2424
description = "Script for transferring sequencing data from sequencers to storage"
2525
authors = [
2626
{ name = "Sara Sjunnebo", email = "sara.sjunnebo@scilifelab.se" },

0 commit comments

Comments
 (0)