From f36d881c8850b05143ef88220352cc719a4a34a2 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Wed, 17 Dec 2025 14:37:22 +0800 Subject: [PATCH] fix: When executing the knowledge base workflow, the loop node reported an error and the workflow was not terminated (#4532) --- apps/application/flow/knowledge_workflow_manage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/application/flow/knowledge_workflow_manage.py b/apps/application/flow/knowledge_workflow_manage.py index 384913623..ab739932b 100644 --- a/apps/application/flow/knowledge_workflow_manage.py +++ b/apps/application/flow/knowledge_workflow_manage.py @@ -89,6 +89,8 @@ class KnowledgeWorkflowManage(WorkflowManage): if result is not None: # 阻塞获取结果 list(result) + if current_node.status == 500: + return None return current_result except Exception as e: traceback.print_exc()