Skip to content

Commit

Permalink
Fix null taskId causing model undeploy issue (#1945) (#1947)
Browse files Browse the repository at this point in the history
Signed-off-by: zane-neo <[email protected]>
(cherry picked from commit 7d79bf6)

Co-authored-by: zane-neo <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and zane-neo authored Jan 29, 2024
1 parent 126ed3a commit bd8b6ab
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ void cleanUpLocalCache(Map<String, Set<String>> runningDeployModelTasks) {
return;
}
for (String taskId : allTaskIds) {
if (taskId == null) {
continue;
}
MLTaskCache mlTaskCache = mlTaskManager.getMLTaskCache(taskId);
// Task could be a prediction task, and it could be completed and removed from cache in predict thread during the cleaning up.
if (mlTaskCache == null) {
Expand Down

0 comments on commit bd8b6ab

Please sign in to comment.