mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
feat: retry execution logic
This commit is contained in:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user