cayu.tasks.TaskInterruptedHandoffRequest
Part of cayu.tasks.base. Read the Python API overview and install the required extra.
from cayu.tasks import TaskInterruptedHandoffRequestExact authority for releasing one interrupted task’s worker ownership.
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 |
|---|---|---|
task_id |
str |
required |
worker_id |
str |
required |
lease_expires_at |
datetime |
required |
session_id |
str |
required |
session_instance_id |
str |
required |
session_run_epoch |
StrictInt |
Field(ge=0, le=MAX_DURABLE_JSON_INTEGER) |
handoff_id |
str |
required |
validate_identity (method)
Section titled “validate_identity (method)”TaskInterruptedHandoffRequest.validate_identity(value: str, info) -> strvalidate_session_instance_id (method)
Section titled “validate_session_instance_id (method)”TaskInterruptedHandoffRequest.validate_session_instance_id(value: str) -> strnormalize_lease_expires_at (method)
Section titled “normalize_lease_expires_at (method)”TaskInterruptedHandoffRequest.normalize_lease_expires_at(value: datetime) -> datetime