Merge pull request #6332 from appwrite/fix-long-running-functions
Fix execution call timeout
This commit is contained in:
commit
d0f2a101a7
1 changed files with 3 additions and 1 deletions
|
@ -202,7 +202,9 @@ class Executor
|
||||||
'runtimeEntrypoint' => $runtimeEntrypoint,
|
'runtimeEntrypoint' => $runtimeEntrypoint,
|
||||||
];
|
];
|
||||||
|
|
||||||
$timeout = (int) App::getEnv('_APP_FUNCTIONS_BUILD_TIMEOUT', 900);
|
// Safety timeout. Executor has timeout, and open runtime has soft timeout.
|
||||||
|
// This one shouldn't really happen, but prevents from unexpected networking behaviours.
|
||||||
|
$timeout = $timeout + 15;
|
||||||
|
|
||||||
$response = $this->call(self::METHOD_POST, $route, [ 'x-opr-runtime-id' => $runtimeId ], $params, true, $timeout);
|
$response = $this->call(self::METHOD_POST, $route, [ 'x-opr-runtime-id' => $runtimeId ], $params, true, $timeout);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue