Skip to content

Commit

Permalink
avniproject/avni-server#859 | Use "rwb" as healthcheck slug
Browse files Browse the repository at this point in the history
  • Loading branch information
himeshr committed Feb 14, 2025
1 parent af41983 commit 5d4de5e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@Component
public class AvniRwbMainJob {

private static final String HEALTHCHECK_SLUG = "rwb";
private static final String EMPTY_STRING = "";
private static final Logger logger = Logger.getLogger(AvniRwbMainJob.class);

Expand Down Expand Up @@ -44,10 +44,10 @@ public void execute(RwbConfig rwbConfig) {
rwbContextProvider.set(rwbConfig);
avniHttpClient.setAvniSession(rwbAvniSessionFactory.createSession());
rwbUsersNudgeWorker.processUsers();
healthCheckService.success(rwbConfig.getIntegrationSystem().getSystemType().name().toLowerCase());
healthCheckService.success(HEALTHCHECK_SLUG);
logger.info(format("Rwb Main Job Ended: %s", rwbIntegrationSystemName));
} catch (Exception e) {
healthCheckService.failure(rwbConfig.getIntegrationSystem().getSystemType().name().toLowerCase());
healthCheckService.failure(HEALTHCHECK_SLUG);
logger.error(format("Rwb Main Job Errored: %s", rwbIntegrationSystemName), e);
bugsnag.notify(e);
}
Expand Down

0 comments on commit 5d4de5e

Please sign in to comment.