fix: When executing the knowledge base workflow, the loop node reported an error and the workflow was not terminated (#4532)

This commit is contained in:
shaohuzhang1 2025-12-17 14:37:22 +08:00 committed by shaohuzhang1
parent 82cd95434b
commit 446b9a8f89

View File

@ -89,6 +89,8 @@ class KnowledgeWorkflowManage(WorkflowManage):
if result is not None: if result is not None:
# 阻塞获取结果 # 阻塞获取结果
list(result) list(result)
if current_node.status == 500:
return None
return current_result return current_result
except Exception as e: except Exception as e:
traceback.print_exc() traceback.print_exc()