Skip to content

cayu.tasks.TaskOperationalSnapshot

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

from cayu.tasks import TaskOperationalSnapshot

Exact current task counts captured by one store-local read snapshot.

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
as_of datetime required
total_count AggregateCount Field(ge=0)
counts_by_status TaskStatusCounts required
claimable_pending_count AggregateCount Field(ge=0)
scheduled_pending_count AggregateCount Field(ge=0)
accuracy AggregateAccuracy required
TaskOperationalSnapshot.copy_counts_by_status(value: TaskStatusCounts) -> TaskStatusCounts
TaskOperationalSnapshot.copy_accuracy(value: AggregateAccuracy) -> AggregateAccuracy
TaskOperationalSnapshot.normalize_as_of(value: datetime) -> datetime
TaskOperationalSnapshot.validate_total() -> TaskOperationalSnapshot

Release source · Runtime guarantees · Capability guides