findWriteOnlyThreads
findWriteOnlyThreads(
storePath,options?):string[]
Defined in: packages/core/src/history/checkpointRetention.ts:445
GS2-108 — the second predicate: every thread file holding pending writes and no checkpoint — see the module note for why the conversation-link predicate cannot see one. Never throws.
The residual, stated rather than engineered around: another process can hold a thread that is
momentarily write-only, between the checkpoint write for a super-step and the writes of its
tasks. Taking those rows costs that conversation a re-run of one super-step’s tasks on a later
resume. excludeThreadIds is here so an in-process caller could supply protection; no production
caller does, because the only ones are the readout and gth history prune, which write no
checkpoints of their own.
Parameters
Section titled “Parameters”storePath
Section titled “storePath”string
options?
Section titled “options?”excludeThreadIds?
Section titled “excludeThreadIds?”readonly string[]
Returns
Section titled “Returns”string[]