pub fn scan_orphans(wstore: &Arc<WaveStore>) -> u32Expand description
Scan all blocks at server startup. For any agent block that still has
session:active_pid set, transfer the flag to session:was_interrupted.
Returns the number of orphaned sessions found.