From d35ff05910d7bc7dfc28f2b665727f38b08848dd Mon Sep 17 00:00:00 2001 From: Alex Knauth Date: Sun, 17 Nov 2024 10:05:14 -0500 Subject: [PATCH] Add a timeout message (#809) To distinguish between errors where an auto-splitter update took too long, from other errors, such as panics, running out of stack space, etc. --- src/auto_splitting/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/auto_splitting/mod.rs b/src/auto_splitting/mod.rs index a14bdb62..9ffaa7e5 100644 --- a/src/auto_splitting/mod.rs +++ b/src/auto_splitting/mod.rs @@ -920,6 +920,7 @@ fn run( fn watchdog(shared_state: Arc>) { const TIMEOUT: Duration = Duration::from_secs(5); + let mut has_timed_out = false; let Ok(mut state) = shared_state.watchdog_state.lock() else { return; @@ -944,9 +945,15 @@ fn watchdog(shared_state: Arc