Skip to content

Commit c93339f

Browse files
committed
Removed wait for completion in deleteAllTasks
1 parent 356b85a commit c93339f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/Elasticsearch/Tests/Utility.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ private static function wipeCluster(Client $client): void
118118
self::wipeRollupJobs($client);
119119
self::waitForPendingRollupTasks($client);
120120
}
121-
122121
if (version_compare(self::getVersion($client), '7.3.99') > 0) {
123122
self::deleteAllSLMPolicies($client);
124123
}
@@ -556,8 +555,7 @@ private static function deleteAllTasks(Client $client): void
556555
foreach ($tasks['nodes'] as $node => $value) {
557556
foreach ($value['tasks'] as $id => $data) {
558557
$client->tasks()->cancel([
559-
'task_id' => $id,
560-
'wait_for_completion' => true
558+
'task_id' => $id
561559
]);
562560
}
563561
}

0 commit comments

Comments
 (0)