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

pm storage cleanup and pm storage archive-to-swestore #34

Merged

Conversation

guillermo-carrasco
Copy link

  • pm storage cleanup will go through all data_dirs in the config file, check for finished runs in there (presence of RTAComplete.txt) and move them to nosync
  • pm storage archive-to-swestore will go through all nosync directories within all data_dirs in the config file, compress raw data, send it to swestore and remove it from the disk

I am not double checking adler32 calculations because it is actually done, with md5sum, during the transfer to SWESTORE with the -K option.

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)]:

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 ?

Copy link
Author

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!

@guillermo-carrasco
Copy link
Author

Thanks guys, I'll fix what you reported and check the travis build on Monday, have a nice weekend!

@guillermo-carrasco
Copy link
Author

ok @senthil10 and @remiolsen , please have a second look, I've worked on your suggestions 👍

@senthil10
Copy link

Awesome @guillermo-carrasco, looks good for me :) Hope @remiolsen will be happy with this. So merging it 👍

senthil10 added a commit that referenced this pull request Jan 26, 2015
pm storage cleanup and pm storage archive-to-swestore
@senthil10 senthil10 merged commit 21b3c2c into NationalGenomicsInfrastructure:master Jan 26, 2015
@remiolsen
Copy link
Member

All good 👍

@guillermo-carrasco
Copy link
Author

Tackar!

chuan-wang added a commit that referenced this pull request Mar 26, 2024
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.

3 participants