Skip to content
Snippets Groups Projects
Commit 32e8d20c authored by Moe Jette's avatar Moe Jette
Browse files

make job_submit lua less invasive (don't set min job size to 10 and cause job to be not runnable)

parent 60356d6b
No related branches found
No related tags found
No related merge requests found
......@@ -15,13 +15,19 @@ require "posix"
function slurm_job_submit (job_desc)
local rc = slurm.SUCCESS
local min_nodes = 10
local account = "none"
log_info ("slurm_job_submit: changing min_nodes from %d to %d, and setting account to %s",
job_desc.min_nodes, min_nodes, account)
job_desc.min_nodes = min_nodes
job_desc.account = account
local partition = "tbd"
if job_desc.account == nil then
log_info("slurm_job_submit: account is not set, setting default value of %s",
account)
job_desc.account = account
end
if job_desc.partition == nil then
log_info("slurm_job_submit: partition is not set, setting default value of %s",
partition)
end
return job_desc
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