Skip to content

Commit

Permalink
ml
Browse files Browse the repository at this point in the history
  • Loading branch information
henningandersen committed May 24, 2024
1 parent 8de5f11 commit 6554796
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.elasticsearch.action.ActionListener;
import org.elasticsearch.action.search.SearchPhaseExecutionException;
import org.elasticsearch.action.support.PlainActionFuture;
import org.elasticsearch.action.support.UnsafePlainActionFuture;
import org.elasticsearch.action.support.master.AcknowledgedResponse;
import org.elasticsearch.cluster.ClusterChangedEvent;
import org.elasticsearch.cluster.ClusterState;
Expand Down Expand Up @@ -205,7 +206,9 @@ void loadQueuedModels() {
if (stopped) {
return;
}
final PlainActionFuture<TrainedModelDeploymentTask> listener = new PlainActionFuture<>();
final PlainActionFuture<TrainedModelDeploymentTask> listener = new UnsafePlainActionFuture<>(
MachineLearning.UTILITY_THREAD_POOL_NAME
);
try {
deploymentManager.startDeployment(loadingTask, listener);
// This needs to be synchronous here in the utility thread to keep queueing order
Expand Down

0 comments on commit 6554796

Please sign in to comment.