1
0
Fork 0
mirror of synced 2024-09-30 09:18:14 +13:00

Fix fallback values for executor environment variables

This commit is contained in:
Bradley Schofield 2022-01-17 14:04:53 +00:00
parent 0e5f9b138a
commit a10d099789

View file

@ -485,9 +485,9 @@ function runBuildStage(string $buildId, string $projectID, Database $database):
$buildStart = \microtime(true);
$buildTime = \time();
$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'));
$orchestration->setCpus(App::getEnv('_APP_FUNCTIONS_CPUS', 0));
$orchestration->setMemory(App::getEnv('_APP_FUNCTIONS_MEMORY', 256));
$orchestration->setSwap(App::getEnv('_APP_FUNCTIONS_MEMORY_SWAP', 256));
foreach ($vars as &$value) {
$value = strval($value);