Skip to content

Commit

Permalink
Merge pull request #563 from pg-techno123/develop
Browse files Browse the repository at this point in the history
MOSIP-31027
  • Loading branch information
neeharikatech authored Jan 4, 2024
2 parents 8f6f56c + 427f493 commit e937775
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,19 @@ public void run() throws RigInternalError {
if(modules.length()>0 && modules.equalsIgnoreCase("packetcreator")) {

// Check packet creator up or not..
try {
String packetcreatorUri=baseUrl +"/actuator/health";
String serviceStatus = checkActuatorNoAuth(packetcreatorUri);

if (serviceStatus.equalsIgnoreCase("UP") == false) {
this.hasError=true;
throw new SkipException("Packet creator Not responding");

}

}
catch (Exception e) {
this.hasError = true;
logger.error(e.getMessage());
throw new RigInternalError("Connection Refused");
}
}
else {
uri=baseUrl + "/ping/"+ ConfigManager.isInServiceNotDeployedList(GlobalConstants.ESIGNET);
Expand Down

0 comments on commit e937775

Please sign in to comment.