Skip to main content

Interface: EventGroupMarker

workflow.EventGroupMarker

A discrete token used to associate workflow commands (and the corresponding history events) with a logical "group" for UI/observability purposes. Multiple event group markers may be attached to a single command, and a single marker may be attached to multiple commands.

Event group markers are created using createEventGroup.

Event Groups is an experimental API and may change without notice.

Methods

withScope

withScope<T>(fn): Promise<T>

Run fn in a scope in which this event group marker is implicitly attached to every command produced by the workflow code that executes within. Event Group scopes nest: when called from within another event group marker's withScope, all outer markers remain attached as well.

Only callable from a Workflow Execution.

Event Groups is an experimental API and may change without notice.

Type parameters

Name
T

Parameters

NameType
fn() => Promise<T>

Returns

Promise<T>