From 1889a829b5b30d5d0857d5b510b2f7bf907abe4d Mon Sep 17 00:00:00 2001 From: jxxghp Date: Wed, 19 Feb 2025 08:16:35 +0800 Subject: [PATCH] fix workflow process --- app/chain/workflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/chain/workflow.py b/app/chain/workflow.py index 84dde610..5307ef98 100644 --- a/app/chain/workflow.py +++ b/app/chain/workflow.py @@ -42,7 +42,7 @@ class WorkflowChain(ChainBase): continue action = Action(**act) state, context = self.workflowmanager.excute(action, context) - self.workflowoper.step(workflow_id, action=action.name, context=context.dict()) + self.workflowoper.step(workflow_id, action=action.id, context=context.dict()) if not state: logger.error(f"动作 {action.name} 执行失败,工作流失败") self.workflowoper.fail(workflow_id, result=f"动作 {action.name} 执行失败")