Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sort jobs by JOBID in Slurm

Tags:

slurm

In Slurm, I would like to squeue the jobs of a given user by sorting them in ascending order according to their JOBID. I tried

squeue -u username --sort=+JOBID

but it does not work. Do you have any ideas?

like image 534
James Avatar asked Mar 13 '17 20:03

James


People also ask

What is Squeue?

DESCRIPTION. squeue is used to view job and job step information for jobs managed by Slurm.

What is PD in slurm?

squeue - Job States R - Job is running on compute nodes. PD - Job is waiting on compute nodes. CG - Job is completing.

How do you know if you completed a slurm job?

Job information Information on all running and pending batch jobs managed by SLURM can be obtained from the SLURM command squeue . Note that information on completed jobs is only retained for a limited period. Information on jobs that ran in the past is via. sacct An example of the output squeue is shown below.


1 Answers

The argument of the --sort parameter uses the same letter as the format string in the --format option. So your command should be

squeue -u username --sort=+i
like image 85
damienfrancois Avatar answered Oct 08 '22 11:10

damienfrancois