Skip to main content

Interface: RunClaimPendingCommand

Defined in: packages/workflow-engine/src/kernel/commands.ts:68

Claims pending runs and enqueues first-stage jobs.

Properties​

maxClaims?​

readonly optional maxClaims?: number

Defined in: packages/workflow-engine/src/kernel/commands.ts:71


serves?​

readonly optional serves?: readonly ServedDefinition[] | "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​

readonly type: "run.claimPending"

Defined in: packages/workflow-engine/src/kernel/commands.ts:69


workerId​

readonly workerId: string

Defined in: packages/workflow-engine/src/kernel/commands.ts:70