<div dir="ltr">Hi,<div><br></div><div>In lua you can check for the job_desc.script field to be empty:</div><div><br></div><div>if (job_desc.script == nil or job_desc.script == '') then</div><div>...</div><div><br></div><div>Regards,<br>Carlos</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 18, 2020 at 4:07 PM Stephan Roth <<a href="mailto:stephan.roth@ee.ethz.ch">stephan.roth@ee.ethz.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear all,<br>
<br>
Does anybody know of a way to detect whether a job is submitted with <br>
srun, preferrably in job_submit.lua?<br>
<br>
The goal is to allow interactive jobs only on specific partitions.<br>
<br>
Any recommendation or best practice on how to handle interactive jobs is <br>
welcome.<br>
<br>
Thank you,<br>
Stephan<br>
<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">--<br>Carles Fenoy<br></div>