-
Notifications
You must be signed in to change notification settings - Fork 16
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
pm storage cleanup and pm storage archive-to-swestore #34
pm storage cleanup and pm storage archive-to-swestore #34
Conversation
def cleanup(self): | ||
for data_dir in self.app.config.get('storage', 'data_dirs'): | ||
with filesystem.chdir(data_dir): | ||
for run in [r for r in os.listdir(data_dir) if re.match(filesystem.RUN_RE, r)]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this only meant for high-seq runs ? as you defined RUN_RE = '\d{6}_[a-zA-Z\d\-]+_\d{4}_[AB][A-Z\d]{9}'
. So it would not work for miseq, would it ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
damn! no it will not work on MiSeq because of the last part of the regexp, I'll have to change it, well spotted! Thanks!
Thanks guys, I'll fix what you reported and check the travis build on Monday, have a nice weekend! |
ok @senthil10 and @remiolsen , please have a second look, I've worked on your suggestions 👍 |
Awesome @guillermo-carrasco, looks good for me :) Hope @remiolsen will be happy with this. So merging it 👍 |
pm storage cleanup and pm storage archive-to-swestore
All good 👍 |
Tackar! |
pm storage cleanup
will go through alldata_dirs
in the config file, check for finished runs in there (presence ofRTAComplete.txt
) and move them tonosync
pm storage archive-to-swestore
will go through allnosync
directories within alldata_dirs
in the config file, compress raw data, send it to swestore and remove it from the diskI am not double checking adler32 calculations because it is actually done, with md5sum, during the transfer to SWESTORE with the -K option.