cayu.tasks.TaskSessionClosureClaim
Part of cayu.tasks.base. Read the Python API overview and install the required extra.
from cayu.tasks import TaskSessionClosureClaimExact non-expiring authority for retiring one session’s task set.
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 |
|---|---|---|
session_id |
str |
Field(strict=True, min_length=1, max_length=256) |
plan_id |
str |
Field(strict=True, pattern='^[0-9a-f]{64}$') |
task_ids |
tuple[str, ...] |
required |
validate_session (method)
Section titled “validate_session (method)”TaskSessionClosureClaim.validate_session(value)validate_task_ids (method)
Section titled “validate_task_ids (method)”TaskSessionClosureClaim.validate_task_ids(value)validate_claim_bound (method)
Section titled “validate_claim_bound (method)”TaskSessionClosureClaim.validate_claim_bound()