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?
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?
Use the sacct
command:
sacct -l -j <myid>
and look for the 'elapsed' column
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).
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