Skip to main content

Request

A request stored in the request queue, including its metadata and processing state.

Index

Properties

error_messages

error_messages: list[str] | None

Error messages recorded from failed processing attempts.

handled_at

handled_at: AwareDatetime | None

The timestamp when the request was marked as handled, if applicable.

headers

headers: dict[str, Any] | None

HTTP headers sent with the request.

id

id: str

A unique identifier assigned to the request.

loaded_url

loaded_url: AnyUrl | None

The final URL that was loaded, after redirects (if any).

method

method: str | None

The HTTP method of the request.

model_config

model_config: Undefined

no_retry

no_retry: bool | None

Indicates whether the request should not be retried if processing fails.

payload

payload: dict[str, Any] | None

The request payload, typically used with POST or PUT requests.

retry_count

retry_count: int | None

The number of times this request has been retried.

unique_key

unique_key: str

A unique key used for request de-duplication. Requests with the same unique key are considered identical.

url

url: AnyUrl

The URL of the request.

user_data

user_data: RequestUserData | None