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

Gracefully handle user request for slurm jobid=0.

parent 9bd3357b
No related branches found
No related tags found
No related merge requests found
...@@ -2455,6 +2455,10 @@ static int _validate_job_desc(job_desc_msg_t * job_desc_msg, int allocate, ...@@ -2455,6 +2455,10 @@ static int _validate_job_desc(job_desc_msg_t * job_desc_msg, int allocate,
info("attempt by uid %u to set job_id", submit_uid); info("attempt by uid %u to set job_id", submit_uid);
return ESLURM_DUPLICATE_JOB_ID; return ESLURM_DUPLICATE_JOB_ID;
} }
if (job_desc_msg->job_id == 0) {
info("attempt by uid %u to set zero job_id", submit_uid);
return ESLURM_DUPLICATE_JOB_ID;
}
dup_job_ptr = find_job_record((uint32_t) job_desc_msg->job_id); dup_job_ptr = find_job_record((uint32_t) job_desc_msg->job_id);
if (dup_job_ptr && if (dup_job_ptr &&
(!(IS_JOB_FINISHED(dup_job_ptr)))) { (!(IS_JOB_FINISHED(dup_job_ptr)))) {
......
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