Expand description
The startup sweep: the one list of housekeeping that serve runs at startup and gc reuses
(spec “gc”). Every failure is collected, never fatal.
Structs§
Constants§
- STALE_
FILE_ MS - Sentinel files and claim temps are removed when untouched for this long.
Functions§
- age_ms 🔒
- is_
sentinel_ 🔒name - pair_
file_ 🔒parts pair.<id>.<rest>-> (id, rest) for a valid id.- pair_
is_ dead - The pair’s record is gone, or both its sides read
deadornone. The record is looked up by the id in the FILE NAME, and liveness is derived for that id even if the record’s contents disagree. An unreadable record is not “dead”. - startup_
sweep - Log retention, dead stdout dirs, aged
created.*,resume-lockfiles whose owner is dead,opencode-pair.exe.old(Windows), sentinel files without a record older than 24 h and*.tmp-*claim temps older than 24 h. - sweep_
old_ launcher - Windows launcher leftover:
opencode-pair.exe.oldunder the launcher install directory.