Skip to content
Snippets Groups Projects
Commit a3e27150 authored by Gin Tan's avatar Gin Tan
Browse files

Merge branch 'deploysubmitfilter02' into 'master'

Changes to job_filter on handling m3c,m3h,m3g submission without gres

See merge request hpc-team/ansible_cluster_in_a_box!210

Former-commit-id: 01d03617
parents df15194d 8714a0e4
No related branches found
No related tags found
No related merge requests found
......@@ -15,13 +15,45 @@
function slurm_job_submit(job_desc, part_list, submit_uid)
-- Check no default account
if job_desc.account == "default" then
slurm.log_user("You have to specify your project ID as part of your job submission. The account=default is now deprecated on M3 job scheduler.")
return slurm.ERROR
slurm.log_user("You have to specify your project ID as part of your job submission. The account=default is now deprecated on M3 job scheduler.")
return slurm.ERROR
end
-- Check for gres.gpu requirements in m3c, m3h and m3g, else move job to comp
if ((job_desc.partition == "m3c" ) or (job_desc.partition == "m3h" ) or (job_desc.partition == "m3g" )) then
local partition = ""
if (job_desc.gres == nil) then
partition = "comp"
slurm.log_info("slurm_job_submit: for user: %u, partition: %s", submit_uid, partition)
job_desc.partition = partition
end
return slurm.SUCCESS
end
-- Check for QOS rtq in m3c, m3h and m3g, then forward job to rtqp,comp,m3g
if job_desc.qos == "rtq" then
local partition = ""
partition = "rtqp,comp,m3g"
slurm.log_info("slurm_job_submit: for user: %u, partition: %s", submit_uid, partition)
job_desc.partition = partition
return slurm.SUCCESS
end
end
function slurm_job_modify(job_desc, job_rec, part_list, modify_uid)
return slurm.SUCCESS
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment