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

Do not re-use existing slurm job id when submitting batch job from

within a currenly active job.
parent f9e3a647
No related branches found
No related tags found
No related merge requests found
...@@ -449,8 +449,9 @@ _run_batch_job(void) ...@@ -449,8 +449,9 @@ _run_batch_job(void)
if (!(req = job_desc_msg_create_from_opts (script))) if (!(req = job_desc_msg_create_from_opts (script)))
fatal ("Unable to create job request"); fatal ("Unable to create job request");
if (opt.jobid != NO_VAL) /* Do not re-use existing job id when submitting new job
req->job_id = (uint32_t)opt.jobid; * from within a running job */
req->job_id = NO_VAL;
retries = 0; retries = 0;
while ( (retries < MAX_RETRIES) while ( (retries < MAX_RETRIES)
......
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