Skip to content
Snippets Groups Projects
job_submit.lua.j2 803 B
--[[

 Example lua script demonstrating the SLURM job_submit/lua interface.
 This is only an example, not meant for use in its current form.

 Leave the function names, arguments, local varialbes and setmetatable
 set up logic in each function unchanged. Change only the logic after
 the lSUCCESSine containing "*** YOUR LOGIC GOES BELOW ***".

 For use, this script should be copied into a file name "job_submit.lua"
 in the same directory as the SLURM configuration file, slurm.conf.


--]]

function slurm_job_submit(job_desc, part_list, submit_uid)

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.ESLURM_INVALID_ACCOUNT
end

return slurm.SUCCESS

end