Show jobs information in queue
squeue:
view information about jobs located in the Slurm scheduling queue.
gqueue:
squeue alias formated to show specific jobs information
general usage
If you use the command without any paremeters it will show you the currently running jobs in the queue.
$ squeue
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
1127 debug omp-bkp- jprmacha R 9-04:38:00 1 wn018
1128 debug omp-bkp- jprmacha R 9-04:35:45 1 wn019
1129 debug omp-bkp- jprmacha R 9-04:30:58 1 wn020
1130 debug omp-bkp- jprmacha R 9-04:29:51 1 wn012
1156 HPC_4_Day run_zaca root R 2-02:42:26 1 wn035
view jobs from a specific user
You can filter by user, using the --user
flag
$ squeue --user root
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
1156 HPC_4_Day run_zaca root R 2-02:44:28 1 wn035
view particular jobs
You can slso filter by job id, using the -j
flag.
$ squeue -j 1127
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
1127 debug omp-bkp- jprmacha R 9-04:41:26 1 wn018
it is possible to provide multiple job id's separated by comma.
format the command output
The user may provide the output fields with format option "-O", for example showing the number of requested cpus:
$ squeue -o "%.7i %.9P %.8j %.8u %.2t %.10M %.6D %C %N" -u jmartins
JOBID PARTITION NAME USER ST TIME NODES CPUS NODELIST
192427 debug cpi.sh jmartins R 0:06 1 64 hpc047
gqueue alias
The user interfaces have an alias for the squeue comand called gqueue with some useful fields
$ gqueue
JOBID PARTITION NAME USER ST TIME NODES CPUS TRES_PER_NODE NODELIST
184472 gpu gpu-job gpuuser R 18:34:54 1 1 gpu hpc058
**For more detailed information, please see the manual
man squeue
**