Re: [slurm-users] submit_plugin.lua: distinguish between batch and interactive usage

2020-12-07 Thread Loris Bennett
Hi, Thanks for the example. Checking the value of job_desc.script seemed a little indirect to me, so I wondered if there were another way, but apparently not. Cheers, Loris Lech Nieroda writes: > Hello, > > It’s certainly possible to check whether the job is interactive or not, e.g. > > if j

Re: [slurm-users] submit_plugin.lua: distinguish between batch and interactive usage

2020-12-07 Thread Lech Nieroda
Hello, It’s certainly possible to check whether the job is interactive or not, e.g. if job_desc.script == nil or job_desc.script == '' then slurm.log_info("slurm_job_submit: jobscript is missing, assuming interactive job") else slurm.log_info("slurm_job_submit: jobscript is present, assumi