Interface: Kernel
Defined in: packages/workflow-engine/src/kernel/kernel.ts:222
Properties
annotations
annotations:
KernelAnnotations
Defined in: packages/workflow-engine/src/kernel/kernel.ts:224
Methods
dispatch()
dispatch<
T>(command):Promise<CommandResult<T>>
Defined in: packages/workflow-engine/src/kernel/kernel.ts:223
Type Parameters
T
T extends KernelCommand
Parameters
command
T
Returns
Promise<CommandResult<T>>
servedDefinitions()
servedDefinitions(): readonly
ServedDefinition[] |undefined
Defined in: packages/workflow-engine/src/kernel/kernel.ts:234
The (workflowId, version) pairs this kernel's registry presents, or
undefined when the registry cannot enumerate (in which case nothing
is filtered, the pre-1.0 behaviour).
Hosts read it to narrow their job dequeue the same way
run.claimPending narrows claiming, so the decision "can this process
do this work" is made once and applied in every query that takes work.
Returns
readonly ServedDefinition[] | undefined