Skip to content
Snippets Groups Projects
Commit 0d8f908d authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Use --states=all with squeue to get more job statuses

parent 6af8aa57
No related branches found
No related tags found
1 merge request!833[Webservice] Don't mark jobs as finished just because they disappear from squeue output
......@@ -25,7 +25,7 @@ log = logging.getLogger(__name__)
STATES_FINISHED = { # https://slurm.schedmd.com/squeue.html#lbAG
'BOOT_FAIL', 'CANCELLED', 'COMPLETED', 'DEADLINE', 'FAILED',
'OUT_OF_MEMORY', 'PREEMPTED', 'SPECIAL_EXIT', 'TIMEOUT',
'OUT_OF_MEMORY', 'SPECIAL_EXIT', 'TIMEOUT',
}
......@@ -55,7 +55,7 @@ def slurm_status(filter_user=True):
:return: a dictionary indexed by slurm jobid and containing a tuple
of (status, run time) as values.
"""
cmd = ["squeue"]
cmd = ["squeue", "--states=all"]
if filter_user:
cmd += ["--me"]
res = run(cmd, stdout=PIPE, stderr=PIPE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment