Skip to content

dispatch_mesh_task

Part of Reusable workflows in the Python API reference.

Related guidance: shipped-tooling.

Runnable examples: dispatch_mesh_task.py.

from picogrid_ecn_client.workflows import dispatch_mesh_task

Dispatch one typed echo request on an explicit terminal-addressed route.

async def dispatch_mesh_task(
client: ECNClient,
*,
target_entity_id: UUID,
target_integration: str,
target_terminal_id: UUID,
command: str,
message: str,
timeout: float | None = None,
mode: TaskMode = TaskMode.COMPLETE,
) -> DispatchTaskResult
NameTypeDefaultDescription
clientECNClientConfigured SDK client used to dispatch the request.
target_entity_idUUIDCanonical identity of the task target.
target_integrationstrExact integration name that owns the target.
target_terminal_idUUIDCanonical terminal identity that routes to the target.
commandstrExact command name to invoke.
messagestrEcho message sent in the typed request body.
timeoutfloat | NoneNoneOptional maximum wait in seconds.
modeTaskModeTaskMode.COMPLETERequested task completion mode.
TypeDescription
DispatchTaskResultThe public dispatch receipt or completed task result.
ExceptionDescription
ECNClientErrorIf validation, dispatch, or response handling fails.

Source · workflows/tasks.py

Version 0.2.0 · branch main