Increase execution retry attempts to allow swift runtime time to cold start

This commit is contained in:
Jake Barnby 2022-02-24 14:55:11 +13:00
parent 0d3b627176
commit aa091a2afc

View file

@ -129,7 +129,7 @@ class Executor
$status = $response['headers']['status-code'];
if ($status >= 400) {
for ($attempts = 0; $attempts < 5; $attempts++) {
for ($attempts = 0; $attempts < 10; $attempts++) {
switch ($status) {
case 404:
$response = $this->createRuntime(