RequestQueueClientAsync
Index
Methods
add_request
Add a request to the queue.
https://docs.apify.com/api/v2#/reference/request-queues/request-collection/add-request
Parameters
request: dict
keyword-onlyforefront: bool | None = None
Returns dict
batch_add_requests
Add requests to the request queue in batches.
Requests are split into batches based on size and processed in parallel.
https://docs.apify.com/api/v2#/reference/request-queues/batch-request-operations/add-requests
Parameters
requests: list[dict]
keyword-onlyforefront: bool = False
keyword-onlymax_parallel: int = 5
keyword-onlymax_unprocessed_requests_retries: int = 3
keyword-onlymin_delay_between_unprocessed_requests_retries: timedelta = timedelta(milliseconds=500)
Returns BatchAddRequestsResult
batch_delete_requests
Delete given requests from the queue.
https://docs.apify.com/api/v2#/reference/request-queues/batch-request-operations/delete-requests
Parameters
requests: list[dict]
Returns dict
delete
Delete the request queue.
https://docs.apify.com/api/v2#/reference/request-queues/queue/delete-request-queue
Returns None
delete_request
Delete a request from the queue.
https://docs.apify.com/api/v2#/reference/request-queues/request/delete-request
Parameters
request_id: str
Returns None
delete_request_lock
Delete the lock on a request.
https://docs.apify.com/api/v2#/reference/request-queues/request-lock/delete-request-lock
Parameters
request_id: str
keyword-onlyforefront: bool | None = None
Returns None
get
Retrieve the request queue.
https://docs.apify.com/api/v2#/reference/request-queues/queue/get-request-queue
Returns dict | None
get_request
Retrieve a request from the queue.
https://docs.apify.com/api/v2#/reference/request-queues/request/get-request
Parameters
request_id: str
Returns dict | None
list_and_lock_head
Retrieve a given number of unlocked requests from the beginning of the queue and lock them for a given time.
https://docs.apify.com/api/v2#/reference/request-queues/queue-head-with-locks/get-head-and-lock
Parameters
keyword-onlylock_secs: int
keyword-onlylimit: int | None = None
Returns dict
list_head
Retrieve a given number of requests from the beginning of the queue.
https://docs.apify.com/api/v2#/reference/request-queues/queue-head/get-head
Parameters
keyword-onlylimit: int | None = None
Returns dict
list_requests
List requests in the queue.
https://docs.apify.com/api/v2#/reference/request-queues/request-collection/list-requests
Parameters
keyword-onlylimit: int | None = None
keyword-onlyexclusive_start_id: str | None = None
Returns dict
prolong_request_lock
Prolong the lock on a request.
https://docs.apify.com/api/v2#/reference/request-queues/request-lock/prolong-request-lock
Parameters
request_id: str
keyword-onlyforefront: bool | None = None
keyword-onlylock_secs: int
Returns dict
update
Update the request queue with specified fields.
https://docs.apify.com/api/v2#/reference/request-queues/queue/update-request-queue
Parameters
keyword-onlyname: str | None = None
Returns dict
update_request
Update a request in the queue.
https://docs.apify.com/api/v2#/reference/request-queues/request/update-request
Parameters
request: dict
keyword-onlyforefront: bool | None = None
Returns dict
Async sub-client for manipulating a single request queue.