From 37cb58bbde22b7f8da68a0710809c78cda15be51 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Thu, 17 Feb 2022 20:50:21 +0400 Subject: [PATCH] feat: retry execution logic --- src/Executor/Executor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Executor/Executor.php b/src/Executor/Executor.php index b033e3f0c9..fc39ea46d6 100644 --- a/src/Executor/Executor.php +++ b/src/Executor/Executor.php @@ -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'];