mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update app/executor.php
Co-authored-by: Christy Jacob <christyjacob4@gmail.com>
This commit is contained in:
committed by
GitHub
parent
98e615fa5f
commit
11ad99cdcd
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user