Hi Peter,

Le lundi 14 février 2022 à 18:37, Peter Schmidt <pschm...@rivosinc.com> a écrit 
:

> slurm newbie here, converting from pbspro. In pbspro there is the capability 
> of limiting interactive jobs (i.e srun) to a specific queue (i.e partition).

Note that in Slurm, srun and interactive jobs are not the same things. The srun 
command is for creating steps of jobs (interactive or not), optionally creating 
a job allocation beforehand if it does not exist.

You can run interactive jobs with salloc and even attach your PTY to a running 
batch job to interact with it. On the other hand, batchs jobs can create steps 
using srun command.

I don't know any native Slurm feature to restrict interactive jobs (to a 
specific partition or whatever). However, using job_submit LUA plugin and a 
custom LUA script, you might be able to accomplish what you are expecting. It 
has been discussed here:

https://bugs.schedmd.com/show_bug.cgi?id=3094

Best,
--
Rémi Palancher
Rackslab: Open Source Solutions for HPC Operations
https://rackslab.io


Reply via email to