-
Notifications
You must be signed in to change notification settings - Fork 16.7k
Description
Apache Airflow version
3.0.0
If "Other Airflow 2 version" selected, which one?
No response
What happened?
When a DAG has too many past runs (e.g., an hourly DAG that has been running continuously for a year), the UI fails to load the grid view and returns a 504 Gateway Timeout, even though the request specifies limit=10.
I don't have an exact number to define "many past runs". But my Airflow 3 failed to load the grid view for a DAG that has over 8,000 DAG runs. After deleting ~5,000 DAG runs from the database (sadly searching & deleting DAG runs is removed from the UI in Airflow 3), the UI is able load the grid view but with a significant delay of 49.21s
What you think should happen instead?
With the proper limit, grid view should load pretty fast without 504 Gateway Timeout.
How to reproduce
Create a "minutely" dag to accumulate a few thousands of DAG runs and try to load the grid view
Operating System
LM 21.3 with docker python:3.12-slim-bookworm
Versions of Apache Airflow Providers
No response
Deployment
Other Docker-based deployment
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
- I agree to follow this project's Code of Conduct