Skip to content

ReceiveTaskResult

Part of Reusable workflows in the Python API reference.

Related guidance: shipped-tooling.

Runnable examples: receive_task.py.

from picogrid_ecn_client.workflows import ReceiveTaskResult

Registration and retained requests handled before cleanup.

ReceiveTaskResult(
*,
registration: TaskRegistration,
contexts: tuple[TaskRequestContext, ...],
results: tuple[EchoResult, ...],
)

Source · workflows/tasks.py

NameTypeRequiredDefaultConstraintsDescription
registrationTaskRegistrationyesPublic registration created for the echo handler.
contextstuple[TaskRequestContext, …]yesAll contexts from a positive-limit watch, or the most recently retained contexts from an unbounded watch.
resultstuple[EchoResult, …]yesResults corresponding to the retained request contexts.

Version 0.2.0 · branch main