cayu.tasks.TaskOperationalSnapshot
Part of cayu.tasks.base. Read the Python API overview and install the required extra.
from cayu.tasks import TaskOperationalSnapshotExact current task counts captured by one store-local read snapshot.
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 |
|---|---|---|
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 |
copy_counts_by_status (method)
Section titled “copy_counts_by_status (method)”TaskOperationalSnapshot.copy_counts_by_status(value: TaskStatusCounts) -> TaskStatusCountscopy_accuracy (method)
Section titled “copy_accuracy (method)”TaskOperationalSnapshot.copy_accuracy(value: AggregateAccuracy) -> AggregateAccuracynormalize_as_of (method)
Section titled “normalize_as_of (method)”TaskOperationalSnapshot.normalize_as_of(value: datetime) -> datetimevalidate_total (method)
Section titled “validate_total (method)”TaskOperationalSnapshot.validate_total() -> TaskOperationalSnapshot