Slurm Batch script to automatically download ukesm data from mass overnight - #142
Merged
Conversation
Collaborator
Author
|
Ready for review @valeriupredoi (no rush!) |
Owner
|
awesome! Mega work, bud 🍺 need to grab a coffee and do some more other bits, then I'll have a look at it this afternoon |
valeriupredoi
approved these changes
Aug 1, 2025
valeriupredoi
left a comment
Owner
There was a problem hiding this comment.
cowabunga! 🐮 Nice work, bud 🍻
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It's finally here. A basic solution that works for mass downloads.
This script has been installed to run on my personal cron on jasmin:
This submits it via slurm to run on the mass virtual machine.
The script looks for all jobIDs files in the
shared_mass_scriptdirectory, then uses those files to create a list of jobIDs. From the list of jobIDs, it then automatically downloads the annual data from mass. The downloads are done in series, so only one at a time.The jobIDs are shuffled so that they're downloaded in a different order every night, in case a bug in a job download randomly breaks it, or one job takes forever.
The
shared_mass_scriptdirectory are populated by runninganalysis_compare. The original mass scripts are preserved in/gws/nopw/j04/esmeval/bgcval2/shared_mass_scripts/, in case anyone needs to run a manual download.