Hi Peter,
as Rémi said, the way to do this in Slurm is via a job submit plugin. For example in our job_submit.lua we have
if (job_desc.partition == "cpu" or job_desc.partition == "gpu") and job_desc.qos ~= "admin" then
if job_desc.script == nil or job_desc.script == '' then
slurm.log_info("slurm_job_submit: jobscript is missing, assuming interactive job")
slurm.log_info("slurm_job_submit: CPU/GPU partition for interactive job, abort")
slurm.log_user("submit_job: ERROR: interactive jobs are not allowed in the CPU or GPU partitions. Use the interactive partition")
return -1
end
end
Which checks to see if the job script exists - this is more or less the definition of an interactive job.
Ewan Roche
Division Calcul et Soutien à la Recherche
UNIL | Université de Lausanne