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

   HttpOperator can already walk an API with a `pagination_function`, but it 
has no page cap, and offset, page, cursor, and next-link listings still need a 
hand-written callback. A callback that keeps its own counter also repeats a 
page after a deferrable resume, and a next URL on another host would be 
requested with the connection's credentials.
   
   Add `max_pages` on the sync and deferrable paths. When the cap is reached 
and the callback still requests a page, log a warning and return the responses 
already fetched. Add stateless factories that derive the next page only from 
the last response.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [x] Yes (please specify the tool below)
   
   Generated-by: Grok in Cursor 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]

Reply via email to