Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(workflow): IF-ELSE nodes connected to the same subsequent node cause execution to stop (#8247)

takatost5f4cdd66fa82
diff --git a/api/core/workflow/graph_engine/entities/graph.py b/api/core/workflow/graph_engine/entities/graph.py
index 298482de1b4..0b83ee10cd7 100644
--- a/api/core/workflow/graph_engine/entities/graph.py
+++ b/api/core/workflow/graph_engine/entities/graph.py
@@ -86,10 +86,6 @@ class Graph(BaseModel):
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