Skip to content

Commit

Permalink
addressed comments
Browse files Browse the repository at this point in the history
Signed-off-by: Dhrubo Saha <[email protected]>
  • Loading branch information
dhrubo-os committed Oct 3, 2023
1 parent 78c458b commit a9c1ec8
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ private void uploadMLModelMeta(MLRegisterModelMetaInput mlRegisterModelMetaInput

client.index(indexRequest, ActionListener.wrap(response -> {
log.debug("Index model meta doc successfully {}", modelName);
mlStats.createModelCounterStatIfAbsent(response.getId(), REGISTER, ML_ACTION_REQUEST_COUNT).increment();
wrappedListener.onResponse(response.getId());
}, e -> {
log.error("Failed to index model meta doc", e);
Expand Down Expand Up @@ -579,7 +578,6 @@ private void indexRemoteModel(MLRegisterModelInput registerModelInput, MLTask ml
String modelId = modelMetaRes.getId();
mlTask.setModelId(modelId);
log.info("create new model meta doc {} for upload task {}", modelId, taskId);
mlStats.createModelCounterStatIfAbsent(modelId, REGISTER, ML_ACTION_REQUEST_COUNT).increment();
mlTaskManager.updateMLTask(taskId, ImmutableMap.of(MODEL_ID_FIELD, modelId, STATE_FIELD, COMPLETED), 5000, true);
if (registerModelInput.isDeployModel()) {
deployModelAfterRegistering(registerModelInput, modelId);
Expand Down Expand Up @@ -642,7 +640,6 @@ private void registerModelFromUrl(MLRegisterModelInput registerModelInput, MLTas
String modelId = modelMetaRes.getId();
mlTask.setModelId(modelId);
log.info("create new model meta doc {} for register model task {}", modelId, taskId);
mlStats.createModelCounterStatIfAbsent(modelId, REGISTER, ML_ACTION_REQUEST_COUNT).increment();
// model group id is not present in request body.
registerModel(registerModelInput, taskId, functionName, modelName, version, modelId);
}, e -> {
Expand Down

0 comments on commit a9c1ec8

Please sign in to comment.