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 = {