add skip ran node

This commit is contained in:
takatost 2024-03-16 14:45:16 +08:00
parent a047a98462
commit 6df520ebc6
1 changed files with 6 additions and 0 deletions

View File

@ -137,6 +137,12 @@ class WorkflowEngineManager:
if not next_node:
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
# max steps 30 reached