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
45acad28
Commit
45acad28
authored
1 year ago
by
Thomas Kluyver
Browse files
Options
Downloads
Patches
Plain Diff
Use status AW if correction failed for some detectors in a run
parent
f8c45244
No related branches found
No related tags found
1 merge request
!875
Use status AW in myMdC if correction failed for some detectors in a run
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
webservice/job_monitor.py
+6
-1
6 additions, 1 deletion
webservice/job_monitor.py
with
6 additions
and
1 deletion
webservice/job_monitor.py
+
6
−
1
View file @
45acad28
...
...
@@ -295,7 +295,12 @@ class JobsMonitor:
log
.
debug
(
"
Update MDC for %s, %s: %s
"
,
r
[
'
action
'
],
r
[
'
mymdc_id
'
],
msg
)
if
r
[
'
action
'
]
==
'
CORRECT
'
:
status
=
'
A
'
if
success
else
'
E
'
# Available/Error
if
success
:
status
=
'
A
'
# Available
elif
set
(
krb_id_successes
.
values
())
==
{
0
,
1
}:
status
=
'
AW
'
# Available with Warning (failed for some detectors)
else
:
status
=
'
E
'
# Error
self
.
mymdc_update_run
(
r
[
'
mymdc_id
'
],
msg
,
status
)
else
:
# r['action'] == 'DARK'
status
=
'
F
'
if
success
else
'
E
'
# Finished/Error
...
...
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