Add defaults for environment variables
This commit is contained in:
parent
fda6f4a753
commit
fa15b37433
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue