Skip to content

DispatchReceipt

Part of Tasks in the Python API reference.

Related guidance: concepts/tasks, how-to/receive-local-tasks, how-to/dispatch-local-tasks, quickstarts/effector-handler.

Runnable examples: receive_task.py, dispatch_task.py, receive_mesh_task.py, dispatch_mesh_task.py.

from picogrid_ecn_client import DispatchReceipt

Confirm broker acceptance of a fire-and-forget task dispatch.

DispatchReceipt(
*,
task_id: str,
qos: Literal[1] = 1,
delivery_phase: DeliveryPhase = DeliveryPhase.BROKER_ACCEPTED,
accepted_at: datetime,
)

Source · models/diagnostics.py

NameTypeRequiredDefaultConstraintsDescription
task_idstryesmin_length=1, max_length=128Task correlation identifier, from 1 through 128 characters.
qosLiteral[1]no1MQTT QoS used for fire-and-forget task publication; always one.
delivery_phaseDeliveryPhasenoDeliveryPhase.BROKER_ACCEPTEDBroker-accepted delivery phase established by PUBACK.
accepted_atdatetimeyesTimezone-aware UTC client-clock observation recorded after the task publish completed with a non-failure PUBACK.

Version 0.2.0 · branch main