mirror of
https://github.com/langgenius/dify.git
synced 2026-04-25 01:26:57 +08:00
add skip ran node
This commit is contained in:
parent
a047a98462
commit
6df520ebc6
@ -137,6 +137,12 @@ class WorkflowEngineManager:
|
|||||||
if not next_node:
|
if not next_node:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
# check is already ran
|
||||||
|
if next_node.node_id in [node_and_result.node.node_id
|
||||||
|
for node_and_result in workflow_run_state.workflow_nodes_and_results]:
|
||||||
|
predecessor_node = next_node
|
||||||
|
continue
|
||||||
|
|
||||||
has_entry_node = True
|
has_entry_node = True
|
||||||
|
|
||||||
# max steps 30 reached
|
# max steps 30 reached
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user