Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
pycalibration
Commits
0d8f908d
Commit
0d8f908d
authored
1 year ago
by
Thomas Kluyver
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webservice/job_monitor.py
+2
-2
2 additions, 2 deletions
webservice/job_monitor.py
with
2 additions
and
2 deletions
webservice/job_monitor.py
+
2
−
2
View file @
0d8f908d
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment