henry3260 opened a new pull request, #76414: URL: https://github.com/apache/airflow/pull/76414
Backport of #76268 to `airflow-ctl/v0-1-test`, requested in https://github.com/apache/airflow/pull/76268#issuecomment-6622614548. The `backport-to-airflow-ctl/v0-1-test` label did not produce a PR because the cherry-pick conflicts with this branch. airflowctl's `execute_list` moved to the next page by the `limit` it requested. The server may return fewer entries than that when `api.maximum_page_limit` is 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 as `pools export`, `dags list` and `variables list` then 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 5308480f2eeb3f006bd92c7f748a48d38f4df0c8) related: #76268 --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes (Claude Code) Generated-by: Claude Code (Opus 5) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
