Search code examples
slurm

Check dependency of the job


I have set a chain of batch jobs with dependencies with SLURM.

To test if they are set correctly, I want to see which job is dependent on which job. Is there a way to check that?

By calling squeue -u $USER I can only see that it says (Dependency), but I want to know which job they are specifically dependent on. Thanks in advance!


Solution

  • You can inquire the dependency of jobs by specifying %E in the format. E.g., to check the dependency of job $N:

    squeue -j $N --format "%E"
    

    To check the dependency of all jobs of user $USER:

    squeue -u $USER --format "%i %j %E"
    

    Check the man page of squeue for more options for --format.