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 automated cleanup to ONT instrument transfer script #443

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

Conversation

kedhammar
Copy link

Delete runs from the instrument which are found in the destination/nosync subdir on the mounted storage.

Initially the idea was to also look in e.g. the transfer_promethion.tsv file, but it's located in the home dir of the preproc server itself rather than its mounted storage and so the instrument has no read access from what I can tell.

This PR thus makes the assumption that any run moved to the nosync subdir of the mounted storage has also been sent to miarka.

I considered taking it one step further and looking at destination/nosync/archived, but I'm not sure to what extent the archiving is automated, and this subdir is missing for e.g. MinION QC runs.

@codecov-commenter
Copy link

codecov-commenter commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@43b763b). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #443   +/-   ##
=========================================
  Coverage          ?   29.13%           
=========================================
  Files             ?       31           
  Lines             ?     4984           
  Branches          ?        0           
=========================================
  Hits              ?     1452           
  Misses            ?     3532           
  Partials          ?        0           

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

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

Successfully merging this pull request may close these issues.

2 participants