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 7, 2024
1 parent 917d96e commit 2fae232
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 @@ -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;
Expand Down

0 comments on commit 2fae232

Please sign in to comment.