Skip to content

Commit

Permalink
Add kv-store connection check to readiness probe
Browse files Browse the repository at this point in the history
Signed-off-by: Leon Kiefer <[email protected]>
  • Loading branch information
Legion2 committed Jul 7, 2024
1 parent af8c300 commit 5aae970
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/com/ibm/watson/modelmesh/ModelMesh.java
Original file line number Diff line number Diff line change
Expand Up @@ -1327,6 +1327,11 @@ protected boolean isReady() {
reportReady = true;
}

if (!verifyKvStoreConnection()) {
logger.info("Returning NOT READY to readiness probe due to kv-store connection failure");
return false;
}

return true;
}

Expand Down

0 comments on commit 5aae970

Please sign in to comment.