Skip to content

Commit f36d881

Browse files
authored
fix: When executing the knowledge base workflow, the loop node reported an error and the workflow was not terminated (#4532)
1 parent 1544047 commit f36d881

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/application/flow/knowledge_workflow_manage.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ def hand_node_result(self, current_node, node_result_future):
8989
if result is not None:
9090
# 阻塞获取结果
9191
list(result)
92+
if current_node.status == 500:
93+
return None
9294
return current_result
9395
except Exception as e:
9496
traceback.print_exc()

0 commit comments

Comments
 (0)