38,760
edits
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 5: | Line 5: | ||
scancel $SLURM_ARRAY_JOB_ID | scancel $SLURM_ARRAY_JOB_ID | ||
else | else | ||
echo "Job failed due to license or simulation issue!" | echo "Job attempt $SLURM_ARRAY_TASK_ID of $SLURM_ARRAY_TASK_COUNT failed due to license or simulation issue!" | ||
if [ $SLURM_ARRAY_TASK_ID -lt $SLURM_ARRAY_TASK_COUNT ]; then | if [ $SLURM_ARRAY_TASK_ID -lt $SLURM_ARRAY_TASK_COUNT ]; then | ||
echo "Resubmitting now ..." | echo "Resubmitting job now ..." | ||
else | else | ||
echo " | echo "All job attempts failed exiting now." | ||
fi | fi | ||
fi | fi |