Update app/executor.php

Co-authored-by: Matej Bačo <matejbacocom@gmail.com>
This commit is contained in:
Damodar LohaniandMatej Bačo authored and GitHub committed 2022-05-15 13:22:21 +05:45
1 parent 52a03b4a32
commit b466ad7fa6
1 file changed
+1 -1
+1 -1
View File
@@ -584,7 +584,7 @@ $http->on('start', function ($http) {
/**
* Warmup: make sure images are ready to run fast 🚀
*/
$runtimes = new Runtimes(App::getEnv('_APP_EXECUTOR_VERSION'));
$runtimes = new Runtimes(App::getEnv('_APP_EXECUTOR_VERSION', 'v1'));
$allowList = empty(App::getEnv('_APP_FUNCTIONS_RUNTIMES')) ? [] : \explode(',', App::getEnv('_APP_FUNCTIONS_RUNTIMES'));
$runtimes = $runtimes->getAll(true, $allowList);
foreach ($runtimes as $runtime) {