The "squeue" command is used to display Jobs in the queue. Official documentation : https://slurm.schedmd.com/squeue.html
View all jobs in a waiting list :
[xxxx@osirim-slurm ~]$ squeue
"squeue" affiche les Jobs en attente de tous les utilisateurs par défaut.
Show your own Jobs only :
[xxxx@osirim-slurm ~]$ squeue -u <user>
or (generic)
[xxxx@osirim-slurm ~]$ squeue -u $(whoami)
The $(whoami) command will return your "username" and serve as a filter for the squeue command.
Display information of a specific job in the queue :
[xxxx@osirim-slurm ~]$ squeue -j1234
Customizing the displayed fields :
[xxxx@osirim-slurm ~]$ squeue -o "%A %j %a %P %C %D %n %R %V"
The option "--format" ("-o" in short version) allows to select the fields to display. Refer to the order documentation for a complete list of available fields. This example will display the following fields :
JOBID NAME ACCOUNT PARTITION CPUS NODES REQ_NODES NODELIST(REASON)SUBMIT_TIME
View the queue of a specific partition :
[xxxx@osirim-slurm ~]$ squeue -p 8CPUNodes