From 63b1f0f10bac90e8905ad16010859de140e1bdf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=A6=82=E5=A8=81?= Date: Mon, 22 Sep 2025 11:21:57 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A3=85=E5=A4=87=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/main.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backend/app/main.py b/backend/app/main.py index 8af66e4..607355b 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -203,10 +203,20 @@ def create_app(): nodes = [] params = {} status = {} + uuids = [] + first_uuid = next((x['uuid'] for x in work_content.content if x.get("type") == "first"), "") + if not first_uuid: + work_log.status = DB.WorkLogsStatus.FAILED + await work_log.save() + app.state.tasks.pop(task_id, None) + + + for x in work_content.content: node_id = x["uuid"] node_type = x["type"] node_info = x["detail"] + node_edge = x.get("edge") params[node_id] = node_info status[node_id] = "wait" node_class_map = {