From 096cce09a2987c91841c093a1256751afa7d8e8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Fri, 16 Dec 2022 13:10:57 +0100 Subject: [PATCH] Allow network latency with executor --- src/Executor/Executor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);