Skip to content

Commit c599e0b

Browse files
authored
Merge pull request #919 from shiruosong/master
fix(argo_objects.py): prevent recursion explosion in get_sub_nodes traversal
2 parents 0273737 + 16b5e42 commit c599e0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dflow/argo_objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def get_sub_nodes(self, node_id):
454454
if id not in outbound_nodes:
455455
next_generation += self.status.nodes[id].get(
456456
"children", [])
457-
current_generation = next_generation
457+
current_generation = list(set(next_generation))
458458
return sub_nodes
459459

460460
def get_duration(self) -> datetime.timedelta:

0 commit comments

Comments
 (0)