After a suggestion in another thread, I have been toying with a lua job
submit plugin, and I've achieved my original goal.

I've been sucked in by the possibilities of the plugin, and the prospect of
presenting users with a comment on job submission is an attractive one.

I've not been able to get output to the user shell to work however.
 log_info does successfully enter the slurm log, and the qos reassignment
works as I'd hoped.

My logic is below - can anyone see where I'm going wrong?

if job_desc.partition == "sandybridge" then
                if job_desc.account == "account1" then
                        local qos = "account1_sandybridge"
                        log_user("your qos has been changed")
                        log_info("slurm_job_submit: job from uid %d,
setting qos value: %s", submit_uid,
                end
end

Reply via email to