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 committed May 6, 2024
1 parent a3b4620 commit ecf67c3
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 ecf67c3

Please sign in to comment.