Update app/executor.php

Co-authored-by: Matej Bačo <matejbacocom@gmail.com>
This commit is contained in:
Damodar Lohani
2022-05-15 13:22:21 +05:45
committed by GitHub
co-authored by Matej Bačo
parent 52a03b4a32
commit b466ad7fa6
+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) {