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

Gracefully handle request to submit batch job from within an existing batch job.

Warn user attempting to create a job allocation from within an existing job
    allocation.
parent 048239be
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,9 @@ documents those changes that are of interest to users and admins.
WARNING: A NodeName may now occur only once in a slurm.conf file.
If you want to temporarily make nodes DOWN in the slurm.conf,
use the new DownNodes keyword (see "man slurm.conf").
-- Gracefully handle request to submit batch job from within an existing batch job.
-- Warn user attempting to create a job allocation from within an existing job
allocation.
* Changes in SLURM 1.1.0-pre2
=============================
......
......@@ -96,6 +96,15 @@ allocate_nodes(void)
xsignal_save_mask(&oset);
xsignal_unblock(sigarray);
/* Do not re-use existing job id when submitting new job
* from within a running job */
if (j->job_id != NO_VAL) {
info("WARNING: Creating SLURM job allocation from within "
"another allocation");
info("WARNING: You are attempting to initiate a second job");
j->job_id = NO_VAL;
}
while ((rc = slurm_allocate_resources(j, &resp) < 0) && _retry()) {
if (destroy_job)
goto done;
......
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