Merge pull request #1568 from TorstenDittmann/fix-functions-cpu-env
fix(functions): properly cast cpu counts variable
This commit is contained in:
commit
42e4c46a08
|
@ -410,9 +410,9 @@ class FunctionsV1 extends Worker
|
||||||
$executionStart = \microtime(true);
|
$executionStart = \microtime(true);
|
||||||
$executionTime = \time();
|
$executionTime = \time();
|
||||||
|
|
||||||
$orchestration->setCpus(App::getEnv('_APP_FUNCTIONS_CPUS', '1'));
|
$orchestration->setCpus((int) App::getEnv('_APP_FUNCTIONS_CPUS', 0));
|
||||||
$orchestration->setMemory(App::getEnv('_APP_FUNCTIONS_MEMORY', '256'));
|
$orchestration->setMemory((int) App::getEnv('_APP_FUNCTIONS_MEMORY', 256));
|
||||||
$orchestration->setSwap(App::getEnv('_APP_FUNCTIONS_MEMORY_SWAP', '256'));
|
$orchestration->setSwap((int) App::getEnv('_APP_FUNCTIONS_MEMORY_SWAP', 256));
|
||||||
|
|
||||||
foreach ($vars as &$value) {
|
foreach ($vars as &$value) {
|
||||||
$value = strval($value);
|
$value = strval($value);
|
||||||
|
|
Loading…
Reference in a new issue