Interface: RunClaimPendingCommand
Defined in: packages/workflow-engine/src/kernel/commands.ts:68
Claims pending runs and enqueues first-stage jobs.
Properties
maxClaims?
readonlyoptionalmaxClaims?:number
Defined in: packages/workflow-engine/src/kernel/commands.ts:71
serves?
readonlyoptionalserves?: readonlyServedDefinition[] |"all"
Defined in: packages/workflow-engine/src/kernel/commands.ts:86
Which definition versions this claim may adopt.
Left unset, the kernel derives it from the registry's optional
listWorkflows() — so a registry built with createWorkflowRegistry
claims only runs this build can correctly execute, and a registry
without enumeration claims anything, as before versioning existed.
Pass "all" to claim regardless of version (the pre-1.0 behaviour),
or an explicit list to claim on behalf of another build.
Runs created before the consumer migrated carry no version and are
claimable by any host whose serves names their workflow.
type
readonlytype:"run.claimPending"
Defined in: packages/workflow-engine/src/kernel/commands.ts:69
workerId
readonlyworkerId:string
Defined in: packages/workflow-engine/src/kernel/commands.ts:70