Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/core / / PruneThreadsOptions

Interface: PruneThreadsOptions

Defined in: packages/core/src/contracts/checkpoint-store.ts:206

Options for CheckpointStoreExt.pruneThreads.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
beforeEpochMsreadonlynumberCutoff: a (threadId, namespace) pair qualifies when its LATEST checkpoint (by stepNumber) was created before this epoch-ms instant.packages/core/src/contracts/checkpoint-store.ts:212
onlyTerminal?readonlybooleanWhen true (the default), only pairs whose latest checkpoint has a terminal status (completed / failed / aborted) are pruned - suspended threads hold live HITL approvals / awakeables and must survive a retention sweep. Set to false for a hard age-based sweep that also removes suspended threads.packages/core/src/contracts/checkpoint-store.ts:220