module documentation
Event Groups, a way to group logically related workflow events.
Warning
Event Groups is an experimental API and may change without notice.
| Class | |
A discrete token associating workflow commands, and the history events they produce, with a logical group for UI and observability purposes. |
| Function | create |
Create an Event Group that can be attached to commands scheduled by this workflow. |
| Class | _ |
Undocumented |
| Class | _ |
An Event Group created by the SDK around an inbound signal or update. |
| Class | _ |
An Event Group explicitly created by workflow code. |
| Class | _ |
No-op implicit group used when an inbound event ID is missing or invalid. |
| Function | _capture |
Snapshot ambient and directly attached Event Groups as command markers. |
| Function | _inbound |
Create the implicit Event Group for an inbound signal's history event. |
| Function | _inbound |
Create the implicit Event Group for an inbound update. |
| Variable | _active |
Undocumented |
Create an Event Group that can be attached to commands scheduled by this workflow.
Attach the returned group via command event_groups options, or via
EventGroup.scope.
Warning
Event Groups is an experimental API and may change without notice.
| Parameters | |
id:str | Non-empty group identity. Commands with the same id belong to the same group. The user-provided ID is stored as plain text in the workflow history and should therefore not contain sensitive information. |
label:str | None | Optional non-empty display text for the UI / CLI. If provided, it is persisted to history as a codec-encoded Payload. |
| Returns | |
EventGroup | Undocumented |
def _capture_event_group_markers(directs:
Sequence[ EventGroup] | None) -> list[ temporalio.api.sdk.v1.EventGroupMarker]:
(source)
¶
Snapshot ambient and directly attached Event Groups as command markers.
Must be called from the context the command was requested in, which is not necessarily the one it is ultimately built in.