missing squeue option (--states=all) in queue.go
Closed this issue · 1 comments
PATCH:
cmd := exec.Command("/usr/bin/squeue", "-h", "-o %A,%T,%r", "--states=all")
ISSUE:
Does not track COMPLETED jobs.
man squeue (slurm >= 17.11.12)
...
-t <state_list>, --states=<state_list>
Specify the states of jobs to view. Accepts a comma separated list of state names or "all". If
"all" is specified then jobs of all states will be reported. If no state is specified then pending,
running, and completing jobs are reported. See the JOB STATE CODES section below for a list
of valid states. Both extended and compact forms are valid. Note the <state_list> supplied is
case insensitive ("pd" and "PD" are equivalent).
...
Hi.
Yes, you are right: there was actually a bug. I believe we did not spot it till now because we were interested more in jobs in 'running' or 'pending' state. Also, from time to time, the squeue (at least the one in version 14.03) did report jobs in 'completing' state, so it looked fine to us.
I have just pushed a new relase (tagged 0.5) which includes the fix.
Thanks a lot!