huskies: merge 1156 story Periodic liveness tick so runtime freezes have a precise timestamp

This commit is contained in:
dave
2026-05-20 01:18:59 +00:00
parent 7be3bf1dbf
commit 2fb935e726
4 changed files with 43 additions and 0 deletions
+9
View File
@@ -403,6 +403,15 @@ async fn main() -> Result<(), std::io::Error> {
Some(event_buffer),
);
// Permanent liveness heartbeat — stops when the tokio runtime freezes,
// giving a precise timestamp of the freeze from the last [liveness] line.
let liveness_tick_secs = startup_root
.as_ref()
.and_then(|r| config::ProjectConfig::load(r).ok())
.map(|c| c.watcher.liveness_tick_secs)
.unwrap_or(5);
startup::tick_loop::spawn_liveness_tick(liveness_tick_secs);
// Unified 1-second background tick loop.
startup::tick_loop::spawn_tick_loop(
Arc::clone(&startup_agents),