Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for backing up Aviti runs to PDC #442

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

ssjunnebo
Copy link

No description provided.

@codecov-commenter
Copy link

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

)
or (
self._get_run_type(run.name) == "aviti"
and os.path.exists(os.path.join(run_path, "RunUploaded.json"))
Copy link
Member

Choose a reason for hiding this comment

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

So this will start archiving as soon as sequencing has finished? I guess that's what we want

Copy link
Author

Choose a reason for hiding this comment

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

Well, the run should be in nosync, which is once it's been demuxed and transferred to miarka. The only catch is that if we need to redemux, we have to wait for the archiving to finish.

taca/backup/backup.py Outdated Show resolved Hide resolved
Copy link
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.

Great work! Took me quite some time to review since I had to go back to the original method and try to understand how it worked. I might understand it a bit now.

@alneberg
Copy link
Member

Note that you have one file that fails Ruff formatting in case you would like to fix that before merging.

@ssjunnebo
Copy link
Author

Note that you have one file that fails Ruff formatting in case you would like to fix that before merging.

Spaaace 😄

@alneberg
Copy link
Member

Haha, yes that was some major reformating.

@@ -179,10 +196,12 @@ def _get_run_type(self, run):
"^(\d{8})_(\d{4})_([1-3][A-H])_([0-9a-zA-Z]+)_([0-9a-zA-Z]+)$", run
):
run_type = "promethion"
elif "_AV" in run:
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason we can't use filesystem.RUN_RE_ELEMENT for this too? I see that the RUN_RE_ONT is slightly different

)
except:
logger.warn(f'Not able to log "pdc_archived" timestamp for run {run}')
if "_AV" not in run:
Copy link
Member

Choose a reason for hiding this comment

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

Will we need ONT here too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants