cayu.tasks.TaskRetryCancellationReconciliationEvent
Part of cayu.tasks.base. Read the Python API overview and install the required extra.
from cayu.tasks import TaskRetryCancellationReconciliationEventSecret-free event projection for one owner-lost cancellation transition.
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 |
|---|---|---|
id |
str |
required |
type |
TaskRetryCancellationReconciliationEventType |
required |
task_id |
str |
required |
series_id |
str |
required |
attempt |
StrictInt |
Field(ge=1, le=100) |
causal_budget_id |
str |
required |
original_worker_id_sha256 |
str |
required |
cancellation_idempotency_key_sha256 |
str |
required |
request_sha256 |
str | None |
None |
reconciliation_idempotency_key_sha256 |
str | None |
None |
evidence_sha256 |
str | None |
None |
actor_sha256 |
str | None |
None |
outcome |
TaskRetryCancellationReconciliationOutcome | None |
None |
occurred_at |
datetime |
required |
validate_identity (method)
Section titled “validate_identity (method)”TaskRetryCancellationReconciliationEvent.validate_identity(value: str, info) -> strvalidate_sha256 (method)
Section titled “validate_sha256 (method)”TaskRetryCancellationReconciliationEvent.validate_sha256(value: str | None, info) -> str | Nonenormalize_occurred_at (method)
Section titled “normalize_occurred_at (method)”TaskRetryCancellationReconciliationEvent.normalize_occurred_at(value: datetime) -> datetimevalidate_event_shape (method)
Section titled “validate_event_shape (method)”TaskRetryCancellationReconciliationEvent.validate_event_shape() -> TaskRetryCancellationReconciliationEvent