Skip to content

Commit

Permalink
apply spotless
Browse files Browse the repository at this point in the history
Signed-off-by: xinyual <[email protected]>
  • Loading branch information
xinyual committed Dec 9, 2024
1 parent e04d9d6 commit 411dc73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public AgentModelsSearcher(Map<String, Tool.Factory> toolFactories) {
relatedModelIdSet.addAll(toolFactory.getAllModelKeys());
}
}



public SearchRequest constructQueryRequestToSearchModelId(String candidateModelId) {
SearchRequest searchRequest = new SearchRequest(ML_AGENT_INDEX);
BoolQueryBuilder shouldQuery = QueryBuilders.boolQuery();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.Objects;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.atomic.AtomicBoolean;
Expand Down Expand Up @@ -335,7 +334,7 @@ private void checkPipelineBeforeDeleteModel(
}

private void checkDownstreamTaskBeforeDeleteModel(String modelId, Boolean isHidden, ActionListener<DeleteResponse> actionListener) {
// Now 3 is: 1. Agent 2. Search pipeline 3. ingest pipeline
// Now checks 3 resources associated with with the model id 1. Agent 2. Search pipeline 3. ingest pipeline
CountDownLatch countDownLatch = new CountDownLatch(3);
AtomicBoolean noneBlocked = new AtomicBoolean(true);
ConcurrentLinkedQueue<String> errorMessages = new ConcurrentLinkedQueue<>();
Expand Down

0 comments on commit 411dc73

Please sign in to comment.