Interface: RunPurgeCommand
Defined in: packages/workflow-engine/src/kernel/commands.ts:436
Retention: deletes terminal runs that finished at or before olderThan.
For each run the kernel clears the StepLedger for every stage record,
deletes the run's blobs (stage outputs, artifacts, spilled job payloads
and step results under the engine's own key prefixes), removes its job
rows, and then deletes the run through PersistenceCore.deleteRun, which
takes stages, logs, artifacts and annotations with it. Emits no events.
Bounded by limit so a tick stays short; repeat until purged is 0.
Properties
limit?
readonlyoptionallimit?:number
Defined in: packages/workflow-engine/src/kernel/commands.ts:443
Maximum runs deleted per call. Defaults to 100.
olderThan
readonlyolderThan:Date
Defined in: packages/workflow-engine/src/kernel/commands.ts:439
Runs whose completedAt (or, lacking one, updatedAt) is at or before this are eligible.
statuses?
readonlyoptionalstatuses?: readonlyPurgeableRunStatus[]
Defined in: packages/workflow-engine/src/kernel/commands.ts:441
Defaults to all three terminal statuses.
type
readonlytype:"run.purge"
Defined in: packages/workflow-engine/src/kernel/commands.ts:437