[slurm-users] How to detect Job submission by srun / interactive jobs
Carlos Fenoy
minibit at gmail.com
Tue May 19 09:08:58 UTC 2020
Hi,
In lua you can check for the job_desc.script field to be empty:
if (job_desc.script == nil or job_desc.script == '') then
...
Regards,
Carlos
On Mon, May 18, 2020 at 4:07 PM Stephan Roth <stephan.roth at ee.ethz.ch>
wrote:
> Dear all,
>
> Does anybody know of a way to detect whether a job is submitted with
> srun, preferrably in job_submit.lua?
>
> The goal is to allow interactive jobs only on specific partitions.
>
> Any recommendation or best practice on how to handle interactive jobs is
> welcome.
>
> Thank you,
> Stephan
>
>
--
--
Carles Fenoy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20200519/ffaf6a77/attachment.htm>
More information about the slurm-users
mailing list