1
0
Fork 0
mirror of synced 2024-06-10 06:44:45 +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);
$executionTime = \time();
$orchestration->setCpus(App::getEnv('_APP_FUNCTIONS_CPUS', ''));
$orchestration->setMemory(App::getEnv('_APP_FUNCTIONS_MEMORY', ''));
$orchestration->setSwap(App::getEnv('_APP_FUNCTIONS_MEMORY_SWAP', ''));
$orchestration->setCpus(App::getEnv('_APP_FUNCTIONS_CPUS', '1'));
$orchestration->setMemory(App::getEnv('_APP_FUNCTIONS_MEMORY', '256'));
$orchestration->setSwap(App::getEnv('_APP_FUNCTIONS_MEMORY_SWAP', '256'));
foreach($vars as &$value) {
$value = strval($value);