From 71e42115f41ccf1a5106756bbb73343d16f8f490 Mon Sep 17 00:00:00 2001 From: wb-msm261421 Date: Thu, 28 Dec 2023 14:09:43 +0800 Subject: [PATCH] fix(backend): diagnose sbs create offline task status change --- sysom_server/sysom_diagnosis/apps/task/helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysom_server/sysom_diagnosis/apps/task/helper.py b/sysom_server/sysom_diagnosis/apps/task/helper.py index 3c0e17be..47549620 100644 --- a/sysom_server/sysom_diagnosis/apps/task/helper.py +++ b/sysom_server/sysom_diagnosis/apps/task/helper.py @@ -325,7 +325,7 @@ class DiagnosisHelper: # If the pre-processor executes successfully, the parameters are compliant # and the Job instance is updated await DiagnosisHelper._update_job_async( - instance, command=diagnosis_task.to_dict(), status="Running" + instance, command=diagnosis_task.to_dict() ) except Exception as exc: logger.exception(f"Diagnosis preprocess error: {str(exc)}") @@ -375,7 +375,7 @@ class DiagnosisHelper: wrapper = _get_pre_processor_post_wrapper(preprocess_post_wrapper)() wrapper.process(instance.task_id, diagnosis_task) await DiagnosisHelper._update_job_async( - instance, command=diagnosis_task.to_dict() + instance, command=diagnosis_task.to_dict(), status="Running" ) except Exception as exc: logger.exception(f"Diagnosis preprocess post wrapper error: {str(exc)}") -- Gitee