From f8a81bb74ed0ca273c2f4baee71b5f94aadd46e1 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Wed, 17 Dec 2025 14:27:33 +0800 Subject: [PATCH] fix: When executing the knowledge base workflow, the loop node reported an error and the workflow was not terminated --- 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 384913623f5..ab739932b74 100644 --- a/apps/application/flow/knowledge_workflow_manage.py +++ b/apps/application/flow/knowledge_workflow_manage.py @@ -89,6 +89,8 @@ def hand_node_result(self, current_node, node_result_future): if result is not None: # 阻塞获取结果 list(result) + if current_node.status == 500: + return None return current_result except Exception as e: traceback.print_exc()