huskies: merge 1156 story Periodic liveness tick so runtime freezes have a precise timestamp
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user