Skip to content
Snippets Groups Projects
Commit 49b1b268 authored by Marshall Garey's avatar Marshall Garey Committed by Danny Auble
Browse files

Don't reject a step if it requests a node that is allocated.

Continuation of the previous commit.

Consider this job:

    #!/bin/bash
    #SBATCH -N2
    srun -l -N1 -wn1-1 bash -c 'hostname; sleep 10' &
    sleep 2
    srun -l -N2 -wn1-1 bash -c 'hostname; sleep 10' &
    wait

The second step requests a specific node (using srun -w) that is fully
allocated to the job. Without this commit, the second step is rejected
with the reason of "Memory required by task is not available".

Instead of rejecting the second step, this commit defers the second step
until the node it requested becomes available, and logs to slurmctld:

"some requested nodes n1-1 still have memory or CPUs used by other steps"

Bug 11857
parent 05f5abda
No related branches found
No related tags found
No related merge requests found
Loading
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