Rishabh00b opened a new pull request, #76268:
URL: https://github.com/apache/airflow/pull/76268

   airflowctl's `execute_list` moves 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.
   
   Tests: one where the server caps pages at 2 entries while the client asks 
for 50, and one for an empty page. Both fail without the change.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (Claude Code)
   
   


-- 
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]

Reply via email to