Skip to content

Commit

Permalink
Readiness probe (#191)
Browse files Browse the repository at this point in the history
* Consider IDLE connection to Core as connected state

* Remove debugging code
  • Loading branch information
pradithya aria authored and feast-ci-bot committed May 10, 2019
1 parent a401ae3 commit 5be925c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion serving/src/main/java/feast/serving/service/CoreService.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ public Map<String, FeatureSpec> getAllFeatureSpecs() {
*/
public boolean isConnected() {
ConnectivityState state = channel.getState(true);
return state.compareTo(ConnectivityState.READY) == 0;
return state == ConnectivityState.IDLE
|| state == ConnectivityState.READY;
}

/**
Expand Down

0 comments on commit 5be925c

Please sign in to comment.