From 2fae2320f181f38001138671b86f98c314588a24 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Sat, 7 Sep 2024 10:54:22 -0700 Subject: [PATCH] whoops i ate the check errors status increment --- nexus/src/app/background/tasks/instance_watcher.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nexus/src/app/background/tasks/instance_watcher.rs b/nexus/src/app/background/tasks/instance_watcher.rs index 8602dd3e4f3..e400b41cdbc 100644 --- a/nexus/src/app/background/tasks/instance_watcher.rs +++ b/nexus/src/app/background/tasks/instance_watcher.rs @@ -486,7 +486,11 @@ impl BackgroundTask for InstanceWatcher { CheckOutcome::Failure(reason) => { *check_failures.entry(reason.as_str().into_owned()).or_default() += 1; } - CheckOutcome::Unknown => {} + CheckOutcome::Unknown => { + if let Err(reason) = check.result { + *check_errors.entry(reason.as_str().into_owned()).or_default() += 1; + } + } } if check.update_saga_queued { update_sagas_queued += 1;