Skip to content

Commit

Permalink
add 3s sleep before delete model
Browse files Browse the repository at this point in the history
Signed-off-by: zhichao-aws <[email protected]>
  • Loading branch information
zhichao-aws committed Sep 27, 2023
1 parent 7bef7a0 commit 5c0f9ac
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,13 @@ protected void deleteModel(String modelId) {
ImmutableList.of(new BasicHeader(HttpHeaders.USER_AGENT, DEFAULT_USER_AGENT))
);

// after model undeploy returns, the max interval to update model status is 3s in ml-commons CronJob.
try {
Thread.sleep(3000);
} catch (InterruptedException e) {
e.printStackTrace();
}

makeRequest(
client(),
"DELETE",
Expand Down

0 comments on commit 5c0f9ac

Please sign in to comment.