diff --git a/plugin/build.gradle b/plugin/build.gradle index 1088c544fc..d9f97cf4cf 100644 --- a/plugin/build.gradle +++ b/plugin/build.gradle @@ -312,7 +312,9 @@ List jacocoExclusions = [ 'org.opensearch.ml.helper.ModelAccessControlHelper', 'org.opensearch.ml.action.models.DeleteModelTransportAction.2', 'org.opensearch.ml.model.MLModelCacheHelper', - 'org.opensearch.ml.model.MLModelCacheHelper.1' + 'org.opensearch.ml.model.MLModelCacheHelper.1', + 'org.opensearch.ml.action.tasks.CancelBatchJobTransportAction' + ] jacocoTestCoverageVerification { diff --git a/plugin/src/main/java/org/opensearch/ml/action/tasks/GetTaskTransportAction.java b/plugin/src/main/java/org/opensearch/ml/action/tasks/GetTaskTransportAction.java index 721c92d044..01b4724046 100644 --- a/plugin/src/main/java/org/opensearch/ml/action/tasks/GetTaskTransportAction.java +++ b/plugin/src/main/java/org/opensearch/ml/action/tasks/GetTaskTransportAction.java @@ -13,7 +13,6 @@ import static org.opensearch.ml.common.MLTaskState.CANCELLED; import static org.opensearch.ml.common.MLTaskState.COMPLETED; import static org.opensearch.ml.common.connector.ConnectorAction.ActionType.BATCH_PREDICT_STATUS; -import static org.opensearch.ml.common.conversation.ConversationalIndexConstants.META_INDEX_NAME; import static org.opensearch.ml.utils.MLExceptionUtils.logException; import static org.opensearch.ml.utils.MLNodeUtils.createXContentParserFromRegistry; @@ -23,8 +22,6 @@ import org.opensearch.OpenSearchException; import org.opensearch.OpenSearchStatusException; -import org.opensearch.OpenSearchWrapperException; -import org.opensearch.ResourceAlreadyExistsException; import org.opensearch.ResourceNotFoundException; import org.opensearch.action.ActionRequest; import org.opensearch.action.get.GetRequest;