Ticket 13678

Summary: squeue --states=all does not include jobs in STOPPED state
Product: Slurm Reporter: Michael Pelletier <michael.v.pelletier>
Component: User CommandsAssignee: Director of Support <support>
Status: RESOLVED FIXED QA Contact:
Severity: 4 - Minor Issue    
Priority: ---    
Version: 21.08.2   
Hardware: Linux   
OS: Linux   
Site: Raytheon Missile, Space and Airborne Alineos Sites: ---
Atos/Eviden Sites: --- Confidential Site: ---
Coreweave sites: --- Cray Sites: ---
DS9 clusters: --- HPCnow Sites: ---
HPE Sites: --- IBM Sites: ---
NOAA SIte: --- OCF Sites: ---
Recursion Pharma Sites: --- SFW Sites: ---
SNIC sites: --- Linux Distro: ---
Machine Name: CLE Version:
Version Fixed: 22.05.0 23.02.0pre1 Target Release: ---
DevPrio: --- Emory-Cloud Sites: ---

Description Michael Pelletier 2022-03-22 13:35:42 MDT
Running squeue -a --states=all does not include jobs in the STOPPED state.

Reproducer:

$ sbatch --wrap="/bin/sleep 300"
Submitted batch job 2339
$ squeue --me
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REAS
              2339      hpc1     wrap  pelletm  R       0:03      1 eand-idstesla 
$ scancel --signal=SIGSTOP 2339
$ squeue --me # Job appears
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REAS
              2339      hpc1     wrap  pelletm ST       0:27      1 eand-idstesla
$
$ squeue --me --states=all # Job does not appear
             JOBID PARTITION     NAME     USER ST       TIME  NODES NODELIST(REAS
$

It can be worked around by specifying the full list of states individually, which of course is suboptimal, as "all" should include all states.
Comment 5 Jason Booth 2022-03-24 10:30:52 MDT
Hi Michael, this does seem like an oversight. We will look into this and let you know what we find.
Comment 13 Caden Ellis 2022-05-19 10:23:35 MDT
Hello Michael, thanks for logging the bug. We have fixed the --states=all option now. 
The commit is 5e0da15c9835. If there are any other issues, feel free to let us know in a new bug.
Comment 14 Michael Pelletier 2022-05-19 10:34:35 MDT
Thanks!