diff --git a/anduril/slurm-maxfree b/anduril/slurm-maxfree index 0485bee..f475ed8 100755 --- a/anduril/slurm-maxfree +++ b/anduril/slurm-maxfree @@ -113,5 +113,6 @@ fi echo "The job file is in $JOBFILE" # send the job srun --nodelist=${NODELIST[$INDEX]} slurm-cake "$JOBFILE" "$JOBFILE" - +EC=$? wait +exit $EC diff --git a/anduril/slurm-random b/anduril/slurm-random index 58b754d..1bb76a8 100755 --- a/anduril/slurm-random +++ b/anduril/slurm-random @@ -108,5 +108,6 @@ fi echo "The job file is in $JOBFILE" # send the job srun --nodelist=${NODELIST[$INDEX]} slurm-cake "$JOBFILE" "$JOBFILE" - +EC=$? wait +exit $EC