Slurm: How could I return all the completed jobs submitted by a some user?

slurm

Solution

Use

sacct --start=YYYY-MM-DD -u < user_name>

to get all completed or failed jobs from user `user_name` since date `YYYY-MM-DD`

Problem

Following command `squeue -U < user_name >` returns all the jobs that are only running, pending or queued, which are submitted by the user. [Q] How could I return all the completed jobs submitted by the user? also it is possible to obtain submitted jobs' process_id instead of the job_id? Thank you for your valuable time and help.

Original source