Handle unprocessed requests in `batch_add_requests` · Issue #456 · apify/apify-sdk-python · GitHub
Skip to content

Handle unprocessed requests in batch_add_requests #456

Closed
apify/crawlee-python
#1159

Description

@Pijukatel

in _request_queue_client.py (async and sync client) there is a batch_add_requests method. This method is calling Apify API which can return some unprocessed requests in rare cases. This can happen for example due to rate limiting when there is high load. Currently it seems that those unprocessed requests are not handled in any way and will be just ignored.

Maybe the method should at least retry to add unprocessed requests in some final batch? Maybe with some backoff?

(Some context apify/crawlee-python#1155 (comment))

Activity

  1. added
    enhancementNew feature or request.
    t-toolingIssues with this label are in the ownership of the tooling team.
    on Apr 16, 2025
  2. B4nan commented on Apr 16, 2025

    @B4nan
    Member

    IIRC we deal with this in crawlee, at least in the JS version.

  3. Pijukatel commented on Apr 16, 2025

    @Pijukatel
    ContributorAuthor

    IIRC we deal with this in crawlee, at least in the JS version.

    I do not think it is done in Python version. There we assume it just works and we only print the response. This response can contain info about unprocessed requests, but we do not handle that there.

    @janbuchar I might have missed some handling on some other level, so please correct me if I am wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request.t-toolingIssues with this label are in the ownership of the tooling team.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions