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 <[email protected]> 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
