Add argument to specify a slurm reservation #1145
Merged
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.
This adds two new flags to desi_run_night:
--ignore-existing
and--reservation
.--ignore-existing
allows us to, by default, skip over a night if the night has already been submitted for the prod. This prevents overwriting of files, and rerunning slurm jobs. If it is resubmitted on purpose, then--ignore-existing
can be set to do that.The main point of the PR is for
--reservation
. This PR also includes the ability to set this in the yaml file for desi_run_prod. it also propagatesreservation
down into multiple function to where it actually callssbatch
.I tested this on two separate nights with:
desi_run_night -n 20210220 --reservation=cascades
desi_run_night -n 20210221 --reservation=cascades
Below is a screenshot of
sqs
showing that the jobs were submitted to the reservation, including arcs, flats, joint jobs of all varieties, and both types of science jobs.