Skip to content

Commit

Permalink
chore: Log message on abortStartup due to unexpected model loading fa…
Browse files Browse the repository at this point in the history
…ilures (#132)

To help debugging unready condition in case of model loading failures.
The logged message helps to pinpoint the root cause of unready condition.

Fixes #100

-----

Signed-off-by: Leon Kiefer <leon.k97@gmx.de>
  • Loading branch information
Legion2 authored Mar 12, 2024
1 parent eaa2fde commit d2ddb64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/ibm/watson/modelmesh/ModelMesh.java
Original file line number Diff line number Diff line change
Expand Up @@ -1309,6 +1309,7 @@ boolean isLeader() {
@Override
protected boolean isReady() {
if (abortStartup) {
logger.info("Returning NOT READY to readiness probe due to unexpected model loading failures");
return false;
}
// called only post-initialization
Expand Down

0 comments on commit d2ddb64

Please sign in to comment.