Skip to content

Grid View UI slow #56554

@collinmcnulty

Description

@collinmcnulty

Apache Airflow version

3.1.0

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

No response

What happened?

Loading the grid view for a DAG with <100 tasks took 30 seconds. Specifically this GET request ui/grid/structure/dag_name?limit=5&order_by=-run_after

This happens repeatedly across multiple DAGs and on multiple Airflow instances.

What you think should happen instead?

I think this should be significantly faster. Possibly it could be progressive, loading only the data required, like the top level task groups to start with?

How to reproduce

I'm not sure exactly what triggers the long load time. It's possible that mapped tasks are a factor, as we use those frequently. Maybe also the number of dag versions? This happens every time we load up the affected DAGs in the Grid View.

Operating System

debian bullseye

Versions of Apache Airflow Providers

No response

Deployment

Astronomer

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:UIRelated to UI/UX. For Frontend Developers.area:corekind:bugThis is a clearly a bugneeds-triagelabel for new issues that we didn't triage yetpriority:highHigh priority bug that should be patched quickly but does not require immediate new release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions