Skip to main content

cleanup_stale_shared

Function cleanup_stale_shared 

Source
pub fn cleanup_stale_shared(shared_dir: &Path, max_age_ms: u64)
Expand description

Startup sweep over the host-global registry: remove any entry whose updated_at is past max_age_ms OR whose pid is no longer alive on this host (§4.4) — the dead-Agent3 case from the spec’s problem statement, where per-channel TTL cleanup never reached an entry belonging to a channel that hadn’t restarted.