Skip to main content

Interface: StagePollSuspendedCommand

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

Polls suspended stages to check if they can be resumed.

Properties​

maxChecks?​

readonly optional maxChecks?: number

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


serves?​

readonly optional serves?: readonly ServedDefinition[] | "all"

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

Which definition versions this poll may service, in the same shape and with the same defaulting as RunClaimPendingCommand.serves.

It has to be the same answer as the claim's: a host that adopts a run must also poll its suspended stages, and a host that declines to adopt must not hold them. The filter is applied in the query that lists ready stages, so an unserving host never claims a stage's poll lease at all.


type​

readonly type: "stage.pollSuspended"

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