cayu.tasks.graphs
Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.
TaskGraphConflict
Section titled “TaskGraphConflict”from cayu.tasks import TaskGraphConflictA graph operation conflicts with retained identity or lifecycle authority.
Bases: ValueError.
This type’s implementation and inherited behavior are available in the linked release source.
Release source · Runtime guarantees · Capability guides
TaskGraphCreate
Section titled “TaskGraphCreate”from cayu.tasks import TaskGraphCreateBases: 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 |
|---|---|---|
graph_id |
str |
required |
nodes |
tuple[TaskGraphNode, ...] |
Field(min_length=1, max_length=TASK_GRAPH_MAX_NODES) |
validate_identity (method)
Section titled “validate_identity (method)”TaskGraphCreate.validate_identity(value: str) -> strcopy_nodes (method)
Section titled “copy_nodes (method)”TaskGraphCreate.copy_nodes(value: object) -> tuple[TaskGraphNode, ...]validate_graph (method)
Section titled “validate_graph (method)”TaskGraphCreate.validate_graph() -> TaskGraphCreateRelease source · Runtime guarantees · Capability guides
TaskGraphCreationReceipt
Section titled “TaskGraphCreationReceipt”from cayu.tasks import TaskGraphCreationReceiptBases: 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 |
|---|---|---|
access_invocation |
TaskInvocation | None |
Field(default=None, exclude_if=lambda v: v is None) |
graph_id |
GraphIdentifier |
required |
request_sha256 |
str |
Field(pattern='^[0-9a-f]{64}$') |
submitted_request_sha256 |
str |
Field(pattern='^[0-9a-f]{64}$') |
task_ids |
GraphIdentifiers |
Field(min_length=1) |
accepted_at |
datetime |
required |
validate_time (method)
Section titled “validate_time (method)”TaskGraphCreationReceipt.validate_time(value: datetime) -> datetimeRelease source · Runtime guarantees · Capability guides
TaskGraphEvent
Section titled “TaskGraphEvent”from cayu.tasks import TaskGraphEventBases: 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 |
|---|---|---|
graph_id |
GraphIdentifier |
required |
sequence |
StrictInt |
Field(ge=1, le=MAX_PORTABLE_JSON_INTEGER) |
type |
TaskGraphEventType |
required |
occurred_at |
datetime |
required |
task_id |
GraphIdentifier | None |
None |
status |
TaskStatus | None |
None |
prerequisite_task_ids |
GraphIdentifiers |
() |
validate_time (method)
Section titled “validate_time (method)”TaskGraphEvent.validate_time(value: datetime) -> datetimevalidate_event (method)
Section titled “validate_event (method)”TaskGraphEvent.validate_event() -> TaskGraphEventRelease source · Runtime guarantees · Capability guides
TaskGraphEventType
Section titled “TaskGraphEventType”from cayu.tasks import TaskGraphEventTypeBases: StrEnum.
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 |
|---|---|---|
WAITING_GROUP |
class attribute |
'task.group_waiting' |
CREATED |
class attribute |
'task.graph_created' |
WAITING |
class attribute |
'task.dependency_waiting' |
READY |
class attribute |
'task.dependencies_satisfied' |
SKIPPED |
class attribute |
'task.dependency_skipped' |
TERMINAL |
class attribute |
'task.graph_member_terminal' |
Release source · Runtime guarantees · Capability guides
TaskGraphMember
Section titled “TaskGraphMember”from cayu.tasks import TaskGraphMemberBases: 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 |
|---|---|---|
task_id |
GraphIdentifier |
required |
prerequisite_task_ids |
GraphIdentifiers |
required |
status |
TaskStatus |
required |
failed_prerequisite_task_ids |
GraphIdentifiers |
() |
validate_member (method)
Section titled “validate_member (method)”TaskGraphMember.validate_member() -> TaskGraphMemberRelease source · Runtime guarantees · Capability guides
TaskGraphNode
Section titled “TaskGraphNode”from cayu.tasks import TaskGraphNodeBases: 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 |
|---|---|---|
task |
TaskCreate |
required |
prerequisite_task_ids |
tuple[str, ...] |
Field(default=(), max_length=TASK_GRAPH_MAX_NODES) |
copy_task_request (method)
Section titled “copy_task_request (method)”TaskGraphNode.copy_task_request(value: object) -> TaskCreatecanonical_prerequisites (method)
Section titled “canonical_prerequisites (method)”TaskGraphNode.canonical_prerequisites(value: tuple[str, ...]) -> tuple[str, ...]Release source · Runtime guarantees · Capability guides
TaskGraphSnapshot
Section titled “TaskGraphSnapshot”from cayu.tasks import TaskGraphSnapshotBases: 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 |
|---|---|---|
receipt |
TaskGraphCreationReceipt |
required |
members |
tuple[TaskGraphMember, ...] |
Field(min_length=1, max_length=TASK_GRAPH_MAX_NODES) |
last_sequence |
StrictInt |
Field(ge=1, le=MAX_PORTABLE_JSON_INTEGER) |
validate_snapshot (method)
Section titled “validate_snapshot (method)”TaskGraphSnapshot.validate_snapshot() -> TaskGraphSnapshotRelease source · Runtime guarantees · Capability guides
TaskGraphUnavailable
Section titled “TaskGraphUnavailable”from cayu.tasks import TaskGraphUnavailableComplete authoritative graph evidence is unavailable.
Bases: ValueError.
This type’s implementation and inherited behavior are available in the linked release source.