Skip to content

Conversation

@tirkarthi
Copy link
Contributor

The API by default fetches 10 recent dag runs but only the latest run is used in the header information. Passing the limit as 1 saves data and query output. On an example dag with several dag runs it reduces the data from 8kb to 1kb . This is more useful when there is a pending dagrun and makes autorefresh to be more efficient.

const latestRun = dagWithRuns?.latest_dag_runs ? dagWithRuns.latest_dag_runs[0] : undefined;

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label May 19, 2025
@bbovenzi bbovenzi added this to the Airflow 3.0.2 milestone May 19, 2025
@bbovenzi bbovenzi merged commit 6130bcf into apache:main May 19, 2025
43 checks passed
github-actions bot pushed a commit that referenced this pull request May 20, 2025
…50767)

(cherry picked from commit 6130bcf)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
@github-actions
Copy link

Backport successfully created: v3-0-test

Status Branch Result
v3-0-test PR Link

pierrejeambrun pushed a commit that referenced this pull request May 20, 2025
…50767) (#50835)

(cherry picked from commit 6130bcf)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
dadonnelly316 pushed a commit to dadonnelly316/airflow that referenced this pull request May 26, 2025
kaxil pushed a commit that referenced this pull request Jun 3, 2025
…50767) (#50835)

(cherry picked from commit 6130bcf)

Co-authored-by: Karthikeyan Singaravelan <tir.karthi@gmail.com>
sanederchik pushed a commit to sanederchik/airflow that referenced this pull request Jun 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants