Skip to content

Commit

Permalink
Fix null taskId causing model undeploy issue
Browse files Browse the repository at this point in the history
Signed-off-by: zane-neo <[email protected]>
  • Loading branch information
zane-neo committed Jan 29, 2024
1 parent 35f8ef3 commit bb6d7b1
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 bb6d7b1

Please sign in to comment.