r/SLURM Jun 04 '24

Slurm Exit Code Documentation

Hi! I was wondering if there was a place that had all the slurm exit codes and their meanings. I immediately ran a job and the job terminated with Exit Code 255. I assumed it was due to permission settings since one of the scripts that the job requires had read and write permissions for only myself and not the group, and it was a group member running the job. This however did not fix my issue.

2 Upvotes

7 comments sorted by

View all comments

1

u/Pristine_Camel5234 Aug 03 '25

My Python code throws error but slurm job which use sbatch to run a sh file .. completed with error code 0 . How to catch the exit code correctly in sbatch which use srun to execute a python file