Skip to content

Fix missing sequencing_started status#19

Merged
ssjunnebo merged 2 commits intoNationalGenomicsInfrastructure:masterfrom
ssjunnebo:set_sequencing_started
Apr 24, 2026
Merged

Fix missing sequencing_started status#19
ssjunnebo merged 2 commits intoNationalGenomicsInfrastructure:masterfrom
ssjunnebo:set_sequencing_started

Conversation

@ssjunnebo
Copy link
Copy Markdown
Contributor

Set sequencing_started if sequencing finished before sequencing_started was set.

@ssjunnebo ssjunnebo added the no validation validation not needed label Apr 23, 2026
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.68%. Comparing base (ea81a1a) to head (a1c289e).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #19   +/-   ##
=======================================
  Coverage   83.68%   83.68%           
=======================================
  Files          10       10           
  Lines         527      527           
  Branches       41       41           
=======================================
  Hits          441      441           
  Misses         78       78           
  Partials        8        8           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ssjunnebo ssjunnebo requested review from aanil and alneberg April 23, 2026 12:17
Copy link
Copy Markdown
Member

@alneberg alneberg left a comment

Choose a reason for hiding this comment

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

Excellent, thank you!

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!

Copy link
Copy Markdown
Member

@aanil aanil left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Copy Markdown
Member

@alneberg alneberg left a comment

Choose a reason for hiding this comment

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

I meant to approve it with my previous comment.

@ssjunnebo ssjunnebo merged commit a36c9f8 into NationalGenomicsInfrastructure:master Apr 24, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no validation validation not needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants