Skip to content

Commit 02c33a6

Browse files
committed
SlurmSpawner: Add reservation option to batch script
1 parent 370af5b commit 02c33a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

batchspawner/batchspawner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ class SlurmSpawner(UserEnvMixin,BatchSpawnerRegexStates):
527527
{% endif %}{% if runtime %}#SBATCH --time={{runtime}}
528528
{% endif %}{% if memory %}#SBATCH --mem={{memory}}
529529
{% endif %}{% if nprocs %}#SBATCH --cpus-per-task={{nprocs}}
530+
{% endif %}{% if reservation%}#SBATCH --reservation={{reservation}}
530531
{% endif %}{% if options %}#SBATCH {{options}}{% endif %}
531532
532533
trap 'echo SIGTERM received' TERM

0 commit comments

Comments
 (0)