Skip to content

Conversation

@jaymasiwal
Copy link
Contributor

What does this PR do?

Fixes a crash in the Grid View UI when task group structure changes across DAG runs.
Previously, empty task groups could be yielded without any task instance details,
leading to inconsistent aggregation and a UI failure.

Why is this needed?

When a task group exists in one DAG run but has no task instances in another,
the grid aggregation logic attempted to render an empty group, which caused
the grid view to break.

How was this fixed?

The task group node is now yielded only when it has at least one child with
task instance details, ensuring aggregation data is always consistent.

Related issue

Fixes #61208


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken grid view

1 participant