You can identify non-interactive (i.e. batch) jobs as having a non-NULL script variable in the data structure. Right now that isn't passed in the job_submit lua plugin. If you do add that (it should be very simple), please send your patch to the slurm-dev list to be included in the Slurm distribution.
Quoting Marcin Stolarek <[email protected]>:
Hi, I'm wondering if it's possible to recognize job as interactive within a job submit plugin? Is it possible to get this information from job_desc structure, or is it possible to check if job was using --pty ? Does interactive job really differs from batch job, or is just shell the binary being running in this job? cheers, marcin
