Skip to content

Commit b985979

Browse files
committed
Removed wait for completion in deleteAllTasks
1 parent 7ce11db commit b985979

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
@@ -126,7 +126,6 @@ private static function wipeCluster(Client $client): void
126126
self::wipeRollupJobs($client);
127127
self::waitForPendingRollupTasks($client);
128128
}
129-
130129
if (version_compare(self::getVersion($client), '7.3.99') > 0) {
131130
self::deleteAllSLMPolicies($client);
132131
}
@@ -561,8 +560,7 @@ private static function deleteAllTasks(Client $client): void
561560
foreach ($tasks['nodes'] as $node => $value) {
562561
foreach ($value['tasks'] as $id => $data) {
563562
$client->tasks()->cancel([
564-
'task_id' => $id,
565-
'wait_for_completion' => true
563+
'task_id' => $id
566564
]);
567565
}
568566
}

0 commit comments

Comments
 (0)