diff --git a/src/Executor/Executor.php b/src/Executor/Executor.php index 43b2228e1f..4646c3a73f 100644 --- a/src/Executor/Executor.php +++ b/src/Executor/Executor.php @@ -88,7 +88,7 @@ class Executor 'memory' => $this->memory, ]; - $timeout = (int) App::getEnv('_APP_FUNCTIONS_BUILD_TIMEOUT', 900); + $timeout = ((int) App::getEnv('_APP_FUNCTIONS_BUILD_TIMEOUT', 900)) + 2; // 2 secs network lattelcy allowed $response = $this->call(self::METHOD_POST, $route, $headers, $params, true, $timeout); @@ -141,7 +141,7 @@ class Executor 'memory' => $this->memory, ]; - $timeout = (int) App::getEnv('_APP_FUNCTIONS_BUILD_TIMEOUT', 900); + $timeout = ((int) App::getEnv('_APP_FUNCTIONS_BUILD_TIMEOUT', 900)) + 2; // 2 secs network lattelcy allowed $response = $this->call(self::METHOD_POST, $route, $headers, $params, true, $timeout);