Skip to main content

Interface: DefinitionVersionSummary

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

Per-version run accounting.

Properties​

active​

readonly active: number

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

PENDING + RUNNING + SUSPENDED — the runs still needing a host.


counts​

readonly counts: Readonly<Record<string, number>>

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

Run count per status.


definitionVersion​

readonly definitionVersion: string | null

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

null for runs created before the consumer migrated.


drained​

readonly drained: boolean

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

True when nothing at this version still needs a host.


oldestCreatedAt​

readonly oldestCreatedAt: Date | null

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

Creation time of the oldest run at this version, in any status.


servedHere​

readonly servedHere: boolean

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

Whether this process's registry currently serves this version. false with active > 0 is the state to act on: those runs have no host here, and either a peer on the old build must finish them or run.redrive must move them forward.


total​

readonly total: number

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

Runs at this version in any status.


workflowId​

readonly workflowId: string

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