From b70653b8217f91781a85f9fed41b9cf847b839c9 Mon Sep 17 00:00:00 2001
From: Damien Leong <damien@Damiens-MacBook-Pro.local>
Date: Tue, 23 Oct 2018 16:26:53 +1100
Subject: [PATCH] Changes to job_filter in M3

---
 roles/slurm-common/templates/job_submit.lua.j2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/roles/slurm-common/templates/job_submit.lua.j2 b/roles/slurm-common/templates/job_submit.lua.j2
index 646844f9..402015f7 100644
--- a/roles/slurm-common/templates/job_submit.lua.j2
+++ b/roles/slurm-common/templates/job_submit.lua.j2
@@ -38,9 +38,9 @@ if ((job_desc.partition == "m3c" ) or (job_desc.partition == "m3h" ) or (job_des
 end
 
 
--- Check for QOS rtq in m3c, m3h and m3g, then forward job to rtqp,comp,m3g
+-- Check for QOS rtq in m3c, m3h , m3g and partition=nil, then forward job to rtqp,comp,m3g
 
-if job_desc.qos == "rtq"  then
+if ((job_desc.qos == "rtq") and (job_desc.partition == nil)) then
    local partition = ""
    partition = "rtqp,comp,m3g"
    slurm.log_info("slurm_job_submit: for user: %u, partition: %s", submit_uid, partition)
-- 
GitLab