modes-slurm keeps waiting when job submission has failed
When job submission fails (e.g. because the wrong partition parameter is given; in the example below I mistakenly used -P
and it used its default), modes-slurm.sh still keeps waiting and printing dots forever:
$ ./modes-slurm.sh ../database.modest -P caserta -E "RED=3" -M MA -N 100000000 -R Uniform
SLURM configuration:
- partition = r415
- nodes = 4
- cores = 8
- timeout-slurm =
Using mono binary /home/hartmannsa/mono/bin/mono
Using modes binary ./modes.exe
Allocating SLURM nodes for the modes slaves
SLURM job name: Qx_modeslurm
Output file (server nodes): servers_Qx_modeslurm.out
salloc: error: invalid partition specified: r415
salloc: error: Job submit/allocate failed: Invalid partition name specified
..........................
Expected behaviour: The script notices the job submission failure and terminates.