From 11ad99cdcd406ea0862f83f095336316ec2d560d Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Mon, 20 Jun 2022 13:35:43 +0100 Subject: [PATCH] Update app/executor.php Co-authored-by: Christy Jacob --- app/executor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/executor.php b/app/executor.php index acff22a318..01efe4bd59 100644 --- a/app/executor.php +++ b/app/executor.php @@ -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); }