Skip to content

Commit

Permalink
whoops i ate the check errors status increment
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkw committed Sep 9, 2024
1 parent 2ff54b5 commit 1c68349
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nexus/src/app/background/tasks/instance_watcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,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;
Expand Down

0 comments on commit 1c68349

Please sign in to comment.