RequestQueueClient
crawlee.memory_storage_client._request_queue_client.RequestQueueClient
Index
Constructors
__init__
Parameters
memory_storage_client: MemoryStorageClientkeyword-only
id: str | None = Nonekeyword-only
name: str | None = Nonekeyword-only
created_at: datetime | None = Nonekeyword-only
accessed_at: datetime | None = Nonekeyword-only
modified_at: datetime | None = Nonekeyword-only
handled_request_count: int = 0keyword-only
pending_request_count: int = 0keyword-only
Returns None
Methods
add_request
Parameters
request: Request
forefront: bool = Falsekeyword-only
Returns ProcessedRequest
batch_add_requests
Parameters
requests: Sequence[Request]
forefront: bool = Falsekeyword-only
Returns BatchRequestsOperationResponse
batch_delete_requests
Parameters
requests: list[Request]
Returns BatchRequestsOperationResponse
delete
Returns None
delete_request
Parameters
request_id: str
Returns None
delete_request_lock
Parameters
request_id: str
forefront: bool = Falsekeyword-only
Returns None
get
Returns RequestQueueMetadata | None
get_request
Parameters
request_id: str
Returns Request | None
list_and_lock_head
Parameters
lock_secs: intkeyword-only
limit: int | None = Nonekeyword-only
Returns RequestQueueHeadWithLocks
list_head
Parameters
limit: int | None = Nonekeyword-only
Returns RequestQueueHead
prolong_request_lock
Parameters
request_id: str
forefront: bool = Falsekeyword-only
lock_secs: intkeyword-only
Returns ProlongRequestLockResponse
update
Parameters
name: str | None = Nonekeyword-only
Returns RequestQueueMetadata
update_request
Parameters
request: Request
forefront: bool = Falsekeyword-only
Returns ProcessedRequest
update_timestamps
Update the timestamps of the request queue.
Parameters
has_been_modified: boolkeyword-only
Returns None
Properties
resource_directory
Get the resource directory for the client.
resource_info
Get the resource info for the request queue client.
Subclient for manipulating a single request queue.