From 5f4cdd66fa82832e6447e8fd840e5fe5628a4b98 Mon Sep 17 00:00:00 2001 From: takatost Date: Wed, 11 Sep 2024 12:28:32 +0800 Subject: [PATCH] fix(workflow): IF-ELSE nodes connected to the same subsequent node cause execution to stop (#8247) --- api/core/workflow/graph_engine/entities/graph.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/api/core/workflow/graph_engine/entities/graph.py b/api/core/workflow/graph_engine/entities/graph.py index 298482de1b48e2..0b83ee10cd7fb6 100644 --- a/api/core/workflow/graph_engine/entities/graph.py +++ b/api/core/workflow/graph_engine/entities/graph.py @@ -86,10 +86,6 @@ def init(cls, graph_config: Mapping[str, Any], root_node_id: Optional[str] = Non if target_node_id not in reverse_edge_mapping: reverse_edge_mapping[target_node_id] = [] - # is target node id in source node id edge mapping - if any(graph_edge.target_node_id == target_node_id for graph_edge in edge_mapping[source_node_id]): - continue - target_edge_ids.add(target_node_id) # parse run condition