1
0
Fork 0
mirror of synced 2024-07-02 05:00:33 +12:00

Fix execution call timeout

This commit is contained in:
Matej Bačo 2023-09-26 10:06:22 +02:00
parent 6a28499f1b
commit 872531dc95

View file

@ -202,7 +202,9 @@ class Executor
'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);