1
0
Fork 0
mirror of synced 2024-07-01 12:40:34 +12:00

Add defaults for environment variables

This commit is contained in:
Bradley Schofield 2021-08-16 09:19:09 +01:00
parent fda6f4a753
commit fa15b37433

View file

@ -376,9 +376,9 @@ class FunctionsV1 extends Worker
$executionStart = \microtime(true); $executionStart = \microtime(true);
$executionTime = \time(); $executionTime = \time();
$orchestration->setCpus(App::getEnv('_APP_FUNCTIONS_CPUS', '')); $orchestration->setCpus(App::getEnv('_APP_FUNCTIONS_CPUS', '1'));
$orchestration->setMemory(App::getEnv('_APP_FUNCTIONS_MEMORY', '')); $orchestration->setMemory(App::getEnv('_APP_FUNCTIONS_MEMORY', '256'));
$orchestration->setSwap(App::getEnv('_APP_FUNCTIONS_MEMORY_SWAP', '')); $orchestration->setSwap(App::getEnv('_APP_FUNCTIONS_MEMORY_SWAP', '256'));
foreach($vars as &$value) { foreach($vars as &$value) {
$value = strval($value); $value = strval($value);