Re: [slurm-users] [External] How to detect Job submission by srun / interactive jobs

2020-05-19 Thread Yair Yarom
Hi, We have here a job_submit_limit_interactive plugin that limits interactive jobs and can force a partition for such jobs. It also limits the number of concurrent interactive jobs per user by using the license system. It's written in c, so compilation is required. It can be found in: https://git

Re: [slurm-users] [External] How to detect Job submission by srun / interactive jobs

2020-05-18 Thread Florian Zillner
Hi Stephan, From the slurm.conf docs: --- BatchFlag Jobs submitted using the sbatch command have BatchFlag set to 1. Jobs submitted using other commands have BatchFlag set to 0. --- You can look that up e.g. with scontrol show job . I haven't checked though how to access that via lua. If you kno