diff --git a/webservice/job_monitor.py b/webservice/job_monitor.py index 4b22704a4fcb90ec96e256b4e249d78136d983e0..5b1d2140b4a7b1334cffd4a446a007c3a2148031 100644 --- a/webservice/job_monitor.py +++ b/webservice/job_monitor.py @@ -260,10 +260,10 @@ class JobsMonitor: msg = "Calibration jobs succeeded" else: # List success & failure by karabo_id - krb_ids_ok = {k for (k, v) in krb_id_successes if v == 1} + krb_ids_ok = {k for (k, v) in krb_id_successes.items() if v == 1} ok = ', '.join(sorted(krb_ids_ok)) if krb_ids_ok else 'none' - krb_ids_failed = {k for (k, v) in krb_id_successes if v == 0} - msg = f"Succeeded: {ok}; Failed: {', '.join(krb_ids_failed)}" + krb_ids_failed = {k for (k, v) in krb_id_successes.items() if v == 0} + msg = f"Succeeded: {ok}; Failed: {', '.join(sorted(krb_ids_failed))}" log.debug("Update MDC for %s, %s: %s", r['action'], r['mymdc_id'], msg)