Methods
- __init__(*, apify_request_queue_client): None
Parameters
optionalkeyword-onlyapify_request_queue_client: RequestQueueClientAsync
Returns None
- async add_request(*, request, forefront): ProcessedRequest
Parameters
optionalkeyword-onlyrequest: Request
optionalkeyword-onlyforefront: bool = False
Returns ProcessedRequest
- async batch_add_requests(*, requests, forefront): BatchRequestsOperationResponse
Parameters
optionalkeyword-onlyrequests: Sequence[Request]
optionalkeyword-onlyforefront: bool = False
Returns BatchRequestsOperationResponse
- async batch_delete_requests(*, requests): BatchRequestsOperationResponse
Parameters
optionalkeyword-onlyrequests: list[Request]
Returns BatchRequestsOperationResponse
- async delete_request(*, request_id): None
Parameters
optionalkeyword-onlyrequest_id: str
Returns None
- async delete_request_lock(*, request_id, forefront): None
Parameters
optionalkeyword-onlyrequest_id: str
optionalkeyword-onlyforefront: bool = False
Returns None
- async get(): RequestQueueMetadata | None
Returns RequestQueueMetadata | None
- async get_request(*, request_id): Request | None
Parameters
optionalkeyword-onlyrequest_id: str
Returns Request | None
- async list_and_lock_head(*, lock_secs, limit): RequestQueueHeadWithLocks
Parameters
optionalkeyword-onlylock_secs: int
optionalkeyword-onlylimit: int | None = None
Returns RequestQueueHeadWithLocks
- async list_head(*, limit): RequestQueueHead
Parameters
optionalkeyword-onlylimit: int | None = None
Returns RequestQueueHead
- async prolong_request_lock(*, request_id, forefront, lock_secs): ProlongRequestLockResponse
Parameters
optionalkeyword-onlyrequest_id: str
optionalkeyword-onlyforefront: bool = False
optionalkeyword-onlylock_secs: int
Returns ProlongRequestLockResponse
- async update(*, name): RequestQueueMetadata
Parameters
optionalkeyword-onlyname: str | None = None
Returns RequestQueueMetadata
- async update_request(*, request, forefront): ProcessedRequest
Parameters
optionalkeyword-onlyrequest: Request
optionalkeyword-onlyforefront: bool = False
Returns ProcessedRequest
Request queue resource client implementation based on the Apify platform storage.