mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Allow network latency with executor
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user