mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 10:48:59 +08:00
Fix the problem of Workflow terminates after parallel tasks execution, merge node not triggered (#12498)
Co-authored-by: Novice Lee <novicelee@NoviPro.local>
This commit is contained in:
parent
3eb3db0663
commit
b7c11c1818
@ -590,6 +590,8 @@ class Graph(BaseModel):
|
|||||||
start_node_id=node_id,
|
start_node_id=node_id,
|
||||||
routes_node_ids=routes_node_ids,
|
routes_node_ids=routes_node_ids,
|
||||||
)
|
)
|
||||||
|
# Exclude conditional branch nodes
|
||||||
|
and all(edge.run_condition is None for edge in reverse_edge_mapping.get(node_id, []))
|
||||||
):
|
):
|
||||||
if node_id not in merge_branch_node_ids:
|
if node_id not in merge_branch_node_ids:
|
||||||
merge_branch_node_ids[node_id] = []
|
merge_branch_node_ids[node_id] = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user