Browse Source

be code compatible with serverless (#105746)

Related to https://github.com/elastic/elasticsearch/pull/105676
Volodymyr Krasnikov 1 year ago
parent
commit
a13f52fbdb

+ 5 - 0
server/src/main/java/org/elasticsearch/persistent/PersistentTasksService.java

@@ -156,6 +156,11 @@ public class PersistentTasksService {
         execute(request, UpdatePersistentTaskStatusAction.INSTANCE, listener);
     }
 
+    @Deprecated(forRemoval = true)
+    public void sendRemoveRequest(final String taskId, final ActionListener<PersistentTask<?>> listener) {
+        sendRemoveRequest(taskId, null, listener);
+    }
+
     /**
      * Notifies the master node to remove a persistent task from the cluster state. Accepts operation timeout as optional parameter
      */