Update app/executor.php

Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
This commit is contained in:
Bradley Schofield
2022-06-20 13:35:43 +01:00
committed by GitHub
parent 98e615fa5f
commit 11ad99cdcd
+1 -1
View File
@@ -177,7 +177,7 @@ App::post('/v1/runtimes')
->inject('response')
->action(function (string $runtimeId, string $source, string $destination, array $vars, array $commands, string $runtime, string $baseImage, string $entrypoint, bool $remove, string $workdir, $orchestrationPool, $activeRuntimes, Response $response) {
if ($activeRuntimes->exists($runtimeId)) {
if ($activeRuntimes->get($runtimeId)['key'] == 'pending') {
if ($activeRuntimes->get($runtimeId)['status'] == 'pending') {
throw new \Exception('A runtime with the same ID is already being created. Attempt a execution soon.', 500);
}