Skip to content

Commit

Permalink
Clear planningWorkerNodes when model auto-deploys again after undeploy (
Browse files Browse the repository at this point in the history
opensearch-project#2396)

Signed-off-by: Xun Zhang <xunzh@amazon.com>
  • Loading branch information
Zhangxunmt authored May 1, 2024
1 parent ceb6b16 commit 8cb6a9b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ public void dispatchTask(
return;
}
String[] planningWorkerNodes = model.getPlanningWorkerNodes();
boolean deployToAllNodes = model.isDeployToAllNodes();
if (deployToAllNodes) {
planningWorkerNodes = null;
}
MLModel modelBeingAutoDeployed = mlModelManager.addModelToAutoDeployCache(modelId, model);
if (modelBeingAutoDeployed == model) {
log.info(getErrorMessage("Automatically deploy model", modelId, isHidden));
Expand Down

0 comments on commit 8cb6a9b

Please sign in to comment.