Skip to content

Slurm Batch script to automatically download ukesm data from mass overnight - #142

Merged
valeriupredoi merged 5 commits into
mainfrom
dev_slurm_mass
Aug 1, 2025
Merged

Slurm Batch script to automatically download ukesm data from mass overnight#142
valeriupredoi merged 5 commits into
mainfrom
dev_slurm_mass

Conversation

@ledm

@ledm ledm commented Jul 30, 2025

Copy link
Copy Markdown
Collaborator

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:

00 22 * * * sbatch /home/users/ldemora/workspace/bgcval2/lotus_mass.sh

This submits it via slurm to run on the mass virtual machine.

The script looks for all jobIDs files in the shared_mass_script directory, 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_script directory are populated by running analysis_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.

@ledm
ledm requested review from DrYool, jupalm and valeriupredoi July 30, 2025 09:55
@ledm ledm self-assigned this Jul 30, 2025
@ledm

ledm commented Aug 1, 2025

Copy link
Copy Markdown
Collaborator Author

Ready for review @valeriupredoi (no rush!)

@valeriupredoi

Copy link
Copy Markdown
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 valeriupredoi added enhancement New feature or request met-office-MASS labels Aug 1, 2025

@valeriupredoi valeriupredoi left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

cowabunga! 🐮 Nice work, bud 🍻

@valeriupredoi
valeriupredoi merged commit eedd88f into main Aug 1, 2025
1 check passed
@valeriupredoi
valeriupredoi deleted the dev_slurm_mass branch August 1, 2025 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request met-office-MASS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants