Skip to content

cayu.tasks.TaskRetryEvent

Part of cayu.tasks.base. Read the Python API overview and install the required extra.

from cayu.tasks import TaskRetryEvent

Bounded, failure-payload-free retry evidence committed by a task store.

Bases: BaseModel.

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 TaskRetryEventType required
task_id str required
series_id str required
causal_budget_id str required
attempt StrictInt Field(ge=1, le=100)
disposition TaskRetrySeriesDisposition required
occurred_at datetime required
attempts_remaining StrictInt Field(ge=0, le=99)
tokens_remaining StrictInt | None Field(default=None, ge=0, le=MAX_DURABLE_JSON_INTEGER)
estimated_cost_remaining Decimal | None Field(default=None, ge=0)
cost_currency str required
elapsed_deadline datetime | None None
next_eligible_at datetime | None None
TaskRetryEvent.validate_identity(value: str, info) -> str
TaskRetryEvent.validate_cost_currency(value: str) -> str
TaskRetryEvent.normalize_occurred_at(value: datetime) -> datetime
TaskRetryEvent.normalize_optional_datetime(value: datetime | None, info) -> datetime | None

validate_estimated_cost_remaining (method)

Section titled “validate_estimated_cost_remaining (method)”
TaskRetryEvent.validate_estimated_cost_remaining(value: Decimal | None) -> Decimal | None

Release source · Runtime guarantees · Capability guides