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

job_monitor: don't send status 'R' to myMdC

parent 6dcaa420
No related branches found
No related tags found
1 merge request!796job_monitor: don't send status 'R' to myMdC
...@@ -287,10 +287,10 @@ class JobsMonitor: ...@@ -287,10 +287,10 @@ class JobsMonitor:
def mymdc_update_run(self, run_id, msg, status='R'): def mymdc_update_run(self, run_id, msg, status='R'):
"""Update correction status in MyMdC""" """Update correction status in MyMdC"""
data = {'flg_cal_data_status': status, data = {'cal_pipeline_reply': msg}
'cal_pipeline_reply': msg}
if status != 'R': if status != 'R':
data['cal_last_end_at'] = datetime.now(tz=timezone.utc).isoformat() data['cal_last_end_at'] = datetime.now(tz=timezone.utc).isoformat()
data['flg_cal_data_status'] = status
response = self.mdc.update_run_api(run_id, data) response = self.mdc.update_run_api(run_id, data)
if response.status_code != 200: if response.status_code != 200:
log.error("Failed to update MDC run id %s", run_id) log.error("Failed to update MDC run id %s", run_id)
......
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