diff --git a/goonj/src/main/java/org/avni_integration_service/goonj/job/AvniGoonjFullErrorJob.java b/goonj/src/main/java/org/avni_integration_service/goonj/job/AvniGoonjFullErrorJob.java index f7a618a7..e0799594 100755 --- a/goonj/src/main/java/org/avni_integration_service/goonj/job/AvniGoonjFullErrorJob.java +++ b/goonj/src/main/java/org/avni_integration_service/goonj/job/AvniGoonjFullErrorJob.java @@ -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); @@ -44,6 +47,8 @@ public void execute(GoonjConfig goonjConfig) { } catch (Exception e) { logger.error("Failed AvniGoonjFullErrorJob", e); bugsnag.notify(e); + } finally { + errorRecordsWorker.evaluateNewErrors(); } } }