mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
feat: retry execution logic
This commit is contained in:
parent
44c1154a42
commit
37cb58bbde
1 changed files with 1 additions and 1 deletions
|
|
@ -142,7 +142,7 @@ class Executor
|
|||
}
|
||||
break;
|
||||
case 425:
|
||||
for ($i = 0; $i < 3; $i++) {
|
||||
for ($attempts = 0; $attempts < 3; $attempts++) {
|
||||
sleep(1);
|
||||
$response = $this->call(self::METHOD_POST, $route, $headers, $params, true, 30);
|
||||
$status = $response['headers']['status-code'];
|
||||
|
|
|
|||
Loading…
Reference in a new issue