Skip to content

Commit

Permalink
add sync-up job in missing places
Browse files Browse the repository at this point in the history
Signed-off-by: Bhavana Goud Ramaram <[email protected]>
  • Loading branch information
rbhavna committed Dec 5, 2024
1 parent 1af10ae commit 2d4e64a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ private void triggerAutoDeployModels(List<String> addedNodes) {
modelAutoRedeployArrangements.add(modelAutoRedeployArrangement);
});
redeployAModel();
} else {
log.info("Could not find any models in the index, not performing auto reloading!");
startCronjobAndClearListener();
return;
}
}, e -> {
if (e instanceof IndexNotFoundException) {
Expand Down Expand Up @@ -261,7 +265,7 @@ private void queryRunningModels(ActionListener<SearchResponse> listener) {
private void triggerModelRedeploy(ModelAutoRedeployArrangement modelAutoRedeployArrangement) {
if (modelAutoRedeployArrangement == null) {
log.info("No more models in arrangement, skipping the redeployment");
redeployAModel();
startCronjobAndClearListener();
return;
}
String modelId = modelAutoRedeployArrangement.getSearchResponse().getId();
Expand Down

0 comments on commit 2d4e64a

Please sign in to comment.