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

srun to print jobid and jobid_set parameters used when run in verbose mode.

clear jobid from batch request unless explicitly set on command line 
  (don't use SLURM_JOBID env var). permits submitting new batch job from 
  within an existing job allocation.
parent 25fd1832
No related branches found
No related tags found
No related merge requests found
......@@ -1876,6 +1876,8 @@ static void _opt_list()
info("nodes : %d %s", opt.min_nodes,
opt.nodes_set ? "(set)" : "(default)");
}
info("jobid : %u %s", opt.jobid,
opt.jobid_set ? "(set)" : "(default)");
info("partition : %s",
opt.partition == NULL ? "default" : opt.partition);
info("job name : `%s'", opt.job_name);
......
......@@ -460,8 +460,8 @@ _run_batch_job(void)
/* Do not re-use existing job id from environment variable
* when submitting new job from within a running job */
if (opt.jobid_set != NO_VAL)
req->job_id = (uint32_t)opt.jobid;
if (!opt.jobid_set)
req->job_id = NO_VAL;
retries = 0;
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