Skip to content

AttributeError sort order hierarchical_alphabetical #72114

Description

@tim-hampton

Description

The ability to apply a sort order (alphabetical, alphanumeric, etc.) for tasks or nested TaskGroups contained in an outer TaskGroup, on the graph view of the dag.

Use case/motivation

I have a dag with 4 TaskGroups, each containing several nested TaskGroups which each contain a chain of tasks. I would like for these to display within the outer TaskGroup in alphabetical order so that it's easier to compare runs at a glance. I know that it currently sorts the nested TaskGroups in alphabetical order in the grid view, but that may just be a side-effect of the fact that the list[Dict] that the nested TaskGroups were created from were wrapped with the sorted() function when they were being assigned to their respective variables in my dag script.

In my case, each of the nested TaskGroups contains the same number of chained tasks and none of the nested TaskGroups have any dependencies.

An example of the structure:

  • Outer TaskGroup
    -- Inner TaskGroup_1
    --- tg_1_1 --> tg_1_2 --> tg_1_3 --> tg_1_4
    -- Inner TaskGroup_2
    --- tg_2_1 --> tg_2_2 --> tg_2_3 --> tg_2_4
    -- Inner TaskGroup_3
    --- tg_3_1 --> tg_3_2 --> tg_3_3 --> tg_3_4

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Labels

area:TaskGrouparea:UIRelated to UI/UX. For Frontend Developers.kind:featureFeature Requestsneeds-triagelabel for new issues that we didn't triage yet

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions