Repository navigation
[airflow-ctl/v0-1-test] Fix airflowctl list pagination when the server caps the page size (#76268) - #76414
Merged
henry3260 merged 1 commit intoNov 4, 2026
Conversation
…r caps the page size (apache#76268) (cherry picked from commit 5308480) Conflict resolution: this branch validates pages through the local safe_validate/fill_missing_fields helper instead of validate_response, and it has no "total_entries is None" guard because that handling is main-only, so the early return for a short collection is dropped rather than narrowed.
henry3260
marked this pull request as ready for review
November 4, 2026 13:40
henry3260
requested review from
bugraoz93,
dheerajturaga and
potiuk
as code owners
November 4, 2026 13:40
shahar1
pushed a commit
to shahar1/airflow
that referenced
this pull request
Nov 4, 2026
…r caps the page size (apache#76268) (apache#76414) (cherry picked from commit 5308480) Conflict resolution: this branch validates pages through the local safe_validate/fill_missing_fields helper instead of validate_response, and it has no "total_entries is None" guard because that handling is main-only, so the early return for a short collection is dropped rather than narrowed. Co-authored-by: Rishabh <[email protected]>
28 of 67 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport of #76268 to
airflow-ctl/v0-1-test, requested in #76268 (comment). Thebackport-to-airflow-ctl/v0-1-testlabel did not produce a PR because the cherry-pick conflicts with this branch.airflowctl's
execute_listmoved to the next page by thelimitit requested. The server may return fewer entries than that whenapi.maximum_page_limitis set lower than the client's limit of 50. In that case the entries between the pages are never fetched, and a result smaller than the limit comes back as one short page. Commands such aspools export,dags listandvariables listthen silently drop data.This advances by the number of entries actually received and stops on an empty page, so a short or empty page can't cause a wrong offset or an endless loop.
(cherry picked from commit 5308480)
related: #76268
Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Opus 5) following the guidelines