Skip to content

Commit

Permalink
#122 | Update the error counters after completing the FullErrorJob to…
Browse files Browse the repository at this point in the history
… avoid sending healthcheck fail jobs
  • Loading branch information
himeshr authored and vinayvenu committed May 16, 2024
1 parent 64f4ee1 commit 9c01c6e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public class AvniGoonjFullErrorJob {
@Autowired
private GoonjContextProvider goonjContextProvider;

@Autowired
private AvniGoonjErrorRecordsWorker errorRecordsWorker;

public void execute(GoonjConfig goonjConfig) {
logger.info("Executing Goonj Error Job");
goonjContextProvider.set(goonjConfig);
Expand All @@ -44,6 +47,8 @@ public void execute(GoonjConfig goonjConfig) {
} catch (Exception e) {
logger.error("Failed AvniGoonjFullErrorJob", e);
bugsnag.notify(e);
} finally {
errorRecordsWorker.evaluateNewErrors();
}
}
}

0 comments on commit 9c01c6e

Please sign in to comment.