message¶
- class MessageType(*values)[source]¶
- announce = 'announce'¶
- identify = 'identify'¶
- process = 'process'¶
- init = 'init'¶
- deinit = 'deinit'¶
- ping = 'ping'¶
- start = 'start'¶
- status = 'status'¶
- stop = 'stop'¶
- event = 'event'¶
- error = 'error'¶
- epoch_ended = 'epoch_ended'¶
- class NodeStatus(*values)[source]¶
- stopped = 'stopped'¶
Node is deinitialized - does not have an instantiated node, etc., but is responsive.
- waiting = 'waiting'¶
Node is waiting for its dependency nodes to be ready
- ready = 'ready'¶
Node is ready to process events
- running = 'running'¶
Node is running in free-run mode. Note that we do not update status for every process call at the moment, as that level of granularity is not relevant to the command node when sending commands
- closed = 'closed'¶
Node is permanently gone, should not be expected to respond to further messages.
- pydantic model Message[source]¶
- Config:
use_enum_values: bool = True
validate_by_alias: bool = True
serialize_by_alias: bool = True
- Fields:
- field type_: MessageType [Required] (alias 'type')¶
- class IdentifyValue[source]¶
-
- status: NodeStatus¶
- pydantic model AnnounceMsg[source]¶
Command node ‘announces’ identities of other peers and the events they emit
- Config:
use_enum_values: bool = True
validate_by_alias: bool = True
serialize_by_alias: bool = True
- Fields:
- field value: AnnounceValue [Required]¶
- pydantic model IdentifyMsg[source]¶
A node sends its configuration to the command node on initialization
- Config:
use_enum_values: bool = True
validate_by_alias: bool = True
serialize_by_alias: bool = True
- Fields:
- field value: IdentifyValue [Required]¶
- pydantic model PingMsg[source]¶
Request other nodes to identify themselves and report their status
- Config:
use_enum_values: bool = True
validate_by_alias: bool = True
serialize_by_alias: bool = True
- Fields:
- pydantic model ProcessMsg[source]¶
Process a single iteration of the graph
- Config:
use_enum_values: bool = True
validate_by_alias: bool = True
serialize_by_alias: bool = True
- Fields:
- field value: ProcessValue [Required]¶
Any process-scoped input passed to the process call
- pydantic model InitMsg[source]¶
Initialize nodes within node runners
- Config:
use_enum_values: bool = True
validate_by_alias: bool = True
serialize_by_alias: bool = True
- Fields:
- pydantic model DeinitMsg[source]¶
Deinitializes nodes within node runners
- Config:
use_enum_values: bool = True
validate_by_alias: bool = True
serialize_by_alias: bool = True
- Fields:
- pydantic model StartMsg[source]¶
Start free-running nodes
- Config:
use_enum_values: bool = True
validate_by_alias: bool = True
serialize_by_alias: bool = True
- Fields:
- pydantic model StatusMsg[source]¶
Node updating its current status
- Config:
use_enum_values: bool = True
validate_by_alias: bool = True
serialize_by_alias: bool = True
- Fields:
- field value: NodeStatus [Required]¶
- pydantic model StopMsg[source]¶
Stop processing
- Config:
use_enum_values: bool = True
validate_by_alias: bool = True
serialize_by_alias: bool = True
- Fields:
- pydantic model ErrorMsg[source]¶
An error occurred in one of the processing nodes
- Config:
use_enum_values: bool = True
validate_by_alias: bool = True
serialize_by_alias: bool = True
arbitrary_types_allowed: bool = True
- Fields:
- field value: Annotated[ErrorValue, BeforeValidator(func=_from_jsonable_pickle, json_schema_input_type=PydanticUndefined), WrapSerializer(func=_to_jsonable_pickle, return_type=PydanticUndefined, when_used=json)] [Required]¶
- Constraints:
func = <function _to_jsonable_pickle at 0x7f1ef3991da0>
json_schema_input_type = PydanticUndefined
return_type = PydanticUndefined
when_used = json
- pydantic model EpochEndedMsg[source]¶
Command node is signaling that an epoch has been completed to all nodes, which don’t have a complete picture of the tube’s state.
- Config:
use_enum_values: bool = True
validate_by_alias: bool = True
serialize_by_alias: bool = True
- Fields: