diff --git a/app/executor.php b/app/executor.php index b8ce48383c..528da2eb09 100644 --- a/app/executor.php +++ b/app/executor.php @@ -330,6 +330,7 @@ App::post('/v1/runtimes') ->setCpus(App::getEnv('_APP_FUNCTIONS_CPUS', 0)) ->setMemory(App::getEnv('_APP_FUNCTIONS_MEMORY', 256)) ->setSwap(App::getEnv('_APP_FUNCTIONS_MEMORY_SWAP', 256)); + $id = $orchestration->run( image: $baseImage, name: $container, diff --git a/app/workers/builds.php b/app/workers/builds.php index 24f30984f6..888eaa5675 100644 --- a/app/workers/builds.php +++ b/app/workers/builds.php @@ -138,11 +138,11 @@ class BuildsV1 extends Worker $build->setAttribute('stdout', $response['stdout']); } catch (\Throwable $th) { $endtime = \time(); - Console::error($th->getMessage()); $build->setAttribute('endTime', $endtime); $build->setAttribute('duration', $endtime - $startTime); $build->setAttribute('status', 'failed'); $build->setAttribute('stderr', $th->getMessage()); + Console::error($th->getMessage()); } $build = $dbForProject->updateDocument('builds', $buildId, $build);