Job History¶
Previous section: Multinode jobs and topology
Let's submit a job again with sbatch and check on it with squeue.
Notice that the job disappeared from the output of squeue after completion. How can we check on jobs after they've disappeared here? If you know the job ID, you can always run jobinfo:
But how do we query the full job history?
We can use the sacct program to search deeper into our job history. See man sacct for details, but -X -a are recommended options:
Quiz: How can we limit output to a specific range in time? Are there other fields we can display?
Answer
Use the -S/--starttime and -E/--endtime options to control the window of time shown. The other fields can be found by running sacct --helpformat.
You can use the --name option or many others like it to filter for specific jobs. See man sacct for more details.
An example of a job search that is only for a specific username with a specific submission account would be:
This shows you what jobs you have run with the lab_queue account.
Quiz: How do we control output fields?
Answer
Use the -o/--format option to control what fields are outputted.
Next section: Resource Utilization and Monitoring