Skip to content
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
4 changes: 4 additions & 0 deletions dataflow_transfer/dataflow_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ def process_run(run_dir, sequencer, config):
f"Run {run_dir} is already marked as sequenced, but transfer not complete. "
"Will attempt final transfer again."
)
if not run.has_status("sequencing_started"):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if final_sync_successful is already true but sequencing_started has not been set? Is that something that can happen?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That shouldn't happen. run.final_sync_successful is only true if final_rsync_exitcode_file is 0, and that file is only generated if run.start_transfer(final=True) has been run, which only happens if line 48 is true (if not run.final_sync_successful:) which will now set sequencing_started.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good!

run.update_statusdb(
status="sequencing_started"
) # Cover case where sequencing finished before sequencing_started was set (e.g. due to paused cronjob)
run.update_statusdb(status="sequencing_finished")
run.start_transfer(final=True)
return
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ignore = [

[project]
name = "dataflow_transfer"
version = "1.1.4"
version = "1.1.5"
description = "Script for transferring sequencing data from sequencers to storage"
authors = [
{ name = "Sara Sjunnebo", email = "sara.sjunnebo@scilifelab.se" },
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading