We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96c6daa commit 40b697dCopy full SHA for 40b697d
airflow-core/src/airflow/utils/task_group.py
@@ -63,7 +63,7 @@ def task_group_to_dict(task_item_or_group, parent_group_is_mapped=False):
63
is_mapped = isinstance(task_group, MappedTaskGroup)
64
children = [
65
task_group_to_dict(child, parent_group_is_mapped=parent_group_is_mapped or is_mapped)
66
- for child in sorted(task_group.children.values(), key=lambda t: t.label)
+ for child in task_group.topological_sort()
67
]
68
69
if task_group.upstream_group_ids or task_group.upstream_task_ids:
0 commit comments