cayu.tasks.TaskRetryAttemptReport
Part of cayu.tasks.base. Read the Python API overview and install the required extra.
from cayu.tasks import TaskRetryAttemptReportApplication-owned classification and bounded accounting for one attempt.
Bases: _TaskRetryAttemptOutcome.
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 |
|---|---|---|
idempotency_key |
str |
required |
disposition |
TaskRetryAttemptDisposition |
required |
result |
dict[str, Any] | None |
None |
error |
dict[str, Any] | None |
None |
token_count |
StrictInt |
Field(default=0, ge=0, le=_TASK_RETRY_MAX_ATTEMPT_TOKEN_REPORT) |
estimated_cost |
Decimal |
Field(default=Decimal(0), ge=0) |
retry_after_seconds |
StrictFloat | None |
Field(default=None, ge=0, le=86400) |
validate_idempotency_key (method)
Section titled “validate_idempotency_key (method)”TaskRetryAttemptReport.validate_idempotency_key(value: str) -> strcopy_payload (method)
Section titled “copy_payload (method)”TaskRetryAttemptReport.copy_payload(value: dict[str, Any] | None, info) -> dict[str, Any] | Nonevalidate_estimated_cost (method)
Section titled “validate_estimated_cost (method)”TaskRetryAttemptReport.validate_estimated_cost(value: Decimal) -> Decimalvalidate_disposition_payload (method)
Section titled “validate_disposition_payload (method)”TaskRetryAttemptReport.validate_disposition_payload() -> _TaskRetryAttemptOutcome