cayu.tasks.TaskRetryEvent
Part of cayu.tasks.base. Read the Python API overview and install the required extra.
from cayu.tasks import TaskRetryEventBounded, failure-payload-free retry evidence committed by a task store.
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 |
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 |
validate_identity (method)
Section titled “validate_identity (method)”TaskRetryEvent.validate_identity(value: str, info) -> strvalidate_cost_currency (method)
Section titled “validate_cost_currency (method)”TaskRetryEvent.validate_cost_currency(value: str) -> strnormalize_occurred_at (method)
Section titled “normalize_occurred_at (method)”TaskRetryEvent.normalize_occurred_at(value: datetime) -> datetimenormalize_optional_datetime (method)
Section titled “normalize_optional_datetime (method)”TaskRetryEvent.normalize_optional_datetime(value: datetime | None, info) -> datetime | Nonevalidate_estimated_cost_remaining (method)
Section titled “validate_estimated_cost_remaining (method)”TaskRetryEvent.validate_estimated_cost_remaining(value: Decimal | None) -> Decimal | None