From a10d09978967739f315c02c4c1fb3f0d11735601 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Mon, 17 Jan 2022 14:04:53 +0000 Subject: [PATCH] Fix fallback values for executor environment variables --- app/executor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/executor.php b/app/executor.php index 6e5e945f05..adc5d36634 100644 --- a/app/executor.php +++ b/app/executor.php @@ -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);