We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e48065 commit d318c76Copy full SHA for d318c76
src/auto_splitting/mod.rs
@@ -840,6 +840,7 @@ async fn watchdog(
840
interrupt_receiver: watch::Receiver<Option<InterruptHandle>>,
841
) {
842
const TIMEOUT: Duration = Duration::from_secs(5);
843
+ let mut has_timed_out = false;
844
845
loop {
846
let instant = *timeout_receiver.borrow();
@@ -854,6 +855,10 @@ async fn watchdog(
854
855
Ok(Err(_)) => return,
856
Err(_) => {
857
if let Some(handle) = &*interrupt_receiver.borrow() {
858
+ if !has_timed_out {
859
+ log::error!(target: "Auto Splitter", "timeout, no update in {} seconds", TIMEOUT.as_secs_f32());
860
+ has_timed_out = true;
861
+ }
862
handle.interrupt();
863
}
864
0 commit comments