feat: retry execution logic

This commit is contained in:
Christy Jacob 2022-02-17 20:50:21 +04:00
parent 44c1154a42
commit 37cb58bbde

View file

@ -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'];