Skip to content

Commit

Permalink
added if clause to bypass the integration test
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 9d17843 commit 0bdf991
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ private void predict(String modelId, MLTask mlTask, MLInput mlInput, ActionListe
mlStats
.createCounterStatIfAbsent(mlTask.getFunctionName(), ActionName.PREDICT, MLActionLevelStat.ML_ACTION_REQUEST_COUNT)
.increment();
mlStats.createModelCounterStatIfAbsent(modelId, ActionName.PREDICT, MLActionLevelStat.ML_ACTION_REQUEST_COUNT).increment();
if (modelId != null) {
mlStats.createModelCounterStatIfAbsent(modelId, ActionName.PREDICT, MLActionLevelStat.ML_ACTION_REQUEST_COUNT).increment();
}
mlTask.setState(MLTaskState.RUNNING);
mlTaskManager.add(mlTask);

Expand Down

0 comments on commit 0bdf991

Please sign in to comment.