Skip to content

Task Instances not correctly displayed in task group header in grid view #55319

Description

@jscheffl

Apache Airflow version

main (development)

If "Other Airflow 2 version" selected, which one?

No response

What happened?

If I take a look to a task group the header is showing the task summaries of states, but I see actually two "bugs":

  1. The task instance summary shows the Dag defined task counts as "count"/total but is a mapped task is in the task group the mapping is not respected. For example the run here mapped 40 tasks but only "3" are shown as success:
Image

Mapped task details:

Image
  1. Also taking a closer look to ^^^ it is showing the total of "3" tasks (and not 42) but the task isnatnce list shows no results (translated: "Kein Element vom Typ Task Instanzen gefunden")
Image

What you think should happen instead?

  1. The task count should show the number of task instances in the run including any mapped total and not only the "abstract" task count from Dag structure.
  2. The lower part of the details panel should list all tasks in the task group

How to reproduce

Start current main from breeze and run the "integration_test.py" Dag from Edge, set any number of task mapping on trigger and inspect the task group of the mapped task in grid view

Operating System

Linux

Versions of Apache Airflow Providers

No response

Deployment

Other

Deployment details

Breeze

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Activity

  1. added this to the Airflow 3.1.0 milestone on Sep 5, 2025
  2. added theissue type on Sep 5, 2025
  3. added
    kind:bugThis is a clearly a bug
    area:UIRelated to UI/UX. For Frontend Developers.
    on Sep 5, 2025
  4. yimingpeng commented on Sep 7, 2025

    @yimingpeng
    Contributor

    would like to give a try, thanks @jscheffl

  5. added
    priority:mediumBug that should be fixed before next release but would not block a release
    and removed
    kind:bugThis is a clearly a bug
    on Sep 8, 2025
  6. pierrejeambrun commented on Oct 13, 2025

    @pierrejeambrun
    Member

    2- is caused by prefix_group_id=False. This will remove the prefix from the Tis display name, and therefore the match won't work anymore. Which respects the display name search. Instead we should probably implement proper task_group filtering feature on the API side.

  7. added a commit that references this issue on Oct 31, 2025
    76853e5
  8. added a commit that references this issue on Oct 31, 2025
    07d2892
  9. added a commit that references this issue on Oct 31, 2025
    f45afda
  10. added 2 commits that reference this issue on Oct 31, 2025
    66b4874
    9dc3096
  11. jscheffl commented on Nov 1, 2025

    @jscheffl
    ContributorAuthor

    Re-opening as issue part 2 is not resolved. But thanks for the first 80%!

  12. pierrejeambrun commented on Nov 4, 2025

    @pierrejeambrun
    Member

    Re-opening as issue part 2 is not resolved. But thanks for the first 80%!

    Thanks. This part is related to how the UI uses the API to do task group filtering. (using the task. group prefix in a task_id pattern search), and it will not work if the task group is declared with prefix_group_id=False

  13. added a commit that references this issue on Dec 5, 2025
    5257908
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions