diff --git a/roles/slurm-common/templates/job_submit.lua.j2 b/roles/slurm-common/templates/job_submit.lua.j2 index 402015f7f70ec8ac4b4089289ab3e5316e2241ea..22b05df79c76d4e33a0aae386ac6f5102454ee32 100644 --- a/roles/slurm-common/templates/job_submit.lua.j2 +++ b/roles/slurm-common/templates/job_submit.lua.j2 @@ -24,6 +24,14 @@ if job_desc.account == "default" then end +-- Check Desktop requests with more than one node + +if ((job_desc.name == "desktop") and (job_desc.min_nodes > 1 )) then + slurm.log_user("The current M3 Desktop applications are unable to utilise more than one node, please select one node instead") + return slurm.ERROR +end + + -- Check for gres.gpu requirements in m3c, m3h and m3g, else move job to comp