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

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!875Use status AW in myMdC if correction failed for some detectors in a run
......@@ -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
......
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