Check Job Status

There are many commands with different options for checking the status of batch jobs in Slurm system.

  • squeue - prints all pending and running jobs.
  • squeue -u username - prints all pending and running jobs submitted by username
  • squeue -u username  -o "%.10i %.9P %.8j %.8u %.10f %.8T %.20V %.10M %.9l %.6D %R" - prints all pending and running jobs submitted by username in a specify formatting with specified fields.
  • scontrol show job  - display detailed information of all pending/active jobs
  • scontrol show job job_id - display detailed information of a job specified by job_id.
  • sacct -j job_id - display job accounting information of a job specified by job_id.
  • sacct -j job_id --format=User,JobID,Jobname,partition,state,time,start,end,elapsed,MaxRss,MaxVMSize,nnodes,nodelist - display job accounting information of a job specified by job_id in a specified format.