To list jobs older than 24 hours ago using the sacct command (part of the Slurm workload manager), you need to use the --starttime and --endtime options to specify a time range. Here’s how you can do it:
bashsacct --starttime 2026-02-18 --format=JobID,JobName,Partition,Account,AllocCPUS,State,ExitCode,Start,End,Elapsed,NodeList%30
--starttime 2026-02-18: This sets the start time to yesterday (February 18, 2026), so only jobs that started before today are included.--format: Customizes the output columns. You can adjust the fields as needed.If you want to list jobs that ended more than 24 hours ago, you can use:
bashsacct --endtime 2026-02-18 --format=JobID,JobName,Partition,Account,AllocCPUS,State,ExitCode,Start,End,Elapsed,NodeList%30
2026-02-18 with the appropriate date if you want to go further back.2026-02-18T00:00:00 for more precision.--starttime and --endtime.bashsacct --starttime 2026-02-18
bashsacct --endtime 2026-02-18
Would you like help filtering for a specific user or job state?
Vibe can make mistakes. Check answers. Learn more