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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
beforeEpochMs | readonly | number | Cutoff: 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? | readonly | boolean | When 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 |