package documentation
Workflow Streams for Temporal workflows.
Warning
This package is experimental and may change in future versions.
The Workflow Streams contrib library gives a workflow a durable, offset-addressed event channel built from Signals and polling Updates with an SSE bridge. Cost scales with durable batches, not tokens. Latency is around 100ms per roundtrip; not for ultra-low-latency voice.
See WorkflowStream for the workflow-side stream object and
WorkflowStreamClient for the external client interface.
| Module | _client |
External-side client for Workflow Streams. |
| Module | _stream |
Workflow-side stream object for Workflow Streams. |
| Module | _topic |
Typed topic handles for Workflow Streams. |
| Module | _types |
Shared data types for the Workflow Streams contrib module. |
From __init__.py:
| Class | |
Update payload: request to poll for new items. |
| Class | |
Update response: items matching the poll request. |
| Class | |
A single entry to publish via signal (wire type). |
| Class | |
Per-publisher dedup state. |
| Class | |
Signal payload: batch of entries to publish. |
| Class | |
Client-side handle for publishing to and subscribing from a single topic. |
| Class | |
Workflow-side stream object — append-only log with publish/poll handlers. |
| Class | |
Client for publishing to and subscribing from a workflow stream. |
| Class | |
A single item in the workflow stream's log. |
| Class | |
Serializable snapshot of stream state for continue-as-new. |
| Class | |
Workflow-side handle for publishing to a single topic. |