cayu.tasks.TaskCancellationReconciliationEvent
Part of cayu.tasks.base. Read the Python API overview and install the required extra.
from cayu.tasks import TaskCancellationReconciliationEventSecret-free event projection for one owner-lost ordinary cancellation.
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 |
TaskCancellationReconciliationEventType |
required |
task_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 |
TaskCancellationReconciliationOutcome | None |
None |
occurred_at |
datetime |
required |
validate_identity (method)
Section titled “validate_identity (method)”TaskCancellationReconciliationEvent.validate_identity(value: str, info) -> strvalidate_sha256 (method)
Section titled “validate_sha256 (method)”TaskCancellationReconciliationEvent.validate_sha256(value: str | None, info) -> str | Nonenormalize_occurred_at (method)
Section titled “normalize_occurred_at (method)”TaskCancellationReconciliationEvent.normalize_occurred_at(value: datetime) -> datetimevalidate_event_shape (method)
Section titled “validate_event_shape (method)”TaskCancellationReconciliationEvent.validate_event_shape() -> TaskCancellationReconciliationEvent