cayu.sessions.IncompleteSessionsRecoveryRequest
Part of cayu.sessions.base. Read the Python API overview and install the required extra.
from cayu.sessions import IncompleteSessionsRecoveryRequestSelect and bound one resumable incomplete-session recovery page.
Bases: BaseModel.
Fields and attributes
Section titled “Fields and attributes”Defaults below are source expressions; Field(...) includes schema/validation settings and default_factory creates a fresh value. Inherited declarations are included. Constructor behavior follows the model or dataclass shown in the bases/decorators.
| Name | Type | Default |
|---|---|---|
statuses |
set[SessionStatus] |
required |
limit |
StrictInt |
Field(default=100, ge=1, le=1000) |
inspection_limit |
StrictInt |
Field(default=1000, ge=1, le=10000) |
cursor |
str | None |
None |
inactive_for_seconds |
StrictInt | None |
Field(default=None, ge=0, le=MAX_DURABLE_JSON_INTEGER) |
reason |
str |
'worker_recovered_incomplete_session' |
metadata |
dict[str, Any] |
Field(default_factory=dict) |
copy_statuses (method)
Section titled “copy_statuses (method)”IncompleteSessionsRecoveryRequest.copy_statuses(value) -> set[SessionStatus]validate_reason (method)
Section titled “validate_reason (method)”IncompleteSessionsRecoveryRequest.validate_reason(value: str) -> strvalidate_cursor (method)
Section titled “validate_cursor (method)”IncompleteSessionsRecoveryRequest.validate_cursor(value: str | None) -> str | Nonecopy_metadata (method)
Section titled “copy_metadata (method)”IncompleteSessionsRecoveryRequest.copy_metadata(value: dict[str, Any]) -> dict[str, Any]