Page 1 of 1

Specifying slurm reservation

Posted: Wed Jul 22, 2020 3:02 pm
by smcgrat
Hello,

(Apologies for the multiple different posts).

Is it possible to configure webmo to use a specified slurm reservation by default for all batch jobs? E.g. include the following in all sbatch submissions:

Code: Select all

--reservation=webmo
Apologies if I missed this somewhere in documentation.

Regards

Sean

Re: Specifying slurm reservation

Posted: Wed Jul 22, 2020 3:24 pm
by schmidt
The easiest way to accomplish this is by directly modifying the CGI scripts to add this argument. The relevant script is "daemon_pbs.cgi" (which, despite the name, handles all batch queues). In the 'queue_job' subroutine, around line ~370, you will see a list of options that are passed to sbatch ($qsubOptions, using the pbs terminology). You can append your standing reservation option there without any troubles.

Re: Specifying slurm reservation

Posted: Wed Jul 22, 2020 3:45 pm
by smcgrat
Thanks, will give it a try, much appreciated.