19

One idea I have to find out how long my slurm job is taking is to use

squeue --job <myid>

How do I find out how long my job took to complete though once the job is complete?

sligocki
  • 928

3 Answers3

24

Use the sacct command:

sacct -l -j <myid>

and look for the 'elapsed' column

11
sacct -j <myid> --format=Elapsed

is a very succinct way to show this (Thanks to Sparhawk & damienfrancois for these suggestions, I thought I'd suggest this as a full answer).

sligocki
  • 928
1

Adding on previous answers, if you didn't save the JobID, you can use:

sacct --format=JobID,JobName,State,Elapsed

This will give you the last jobs, its state (RUNNING, FAILED, COMPLETE...) and the time it took (Elapsed).

You can then grep for those that have been completed, or those with a given JobName