From f0985a7e47bb147e766d0ff4efdeea65fa7e1f8c Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 12 Nov 2024 10:16:34 +0100 Subject: [PATCH] fix horizon command name --- ...eploymentsRunning.php => IsHorizonQueueEmpty.php} | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) rename app/Actions/Application/{AnyDeploymentsRunning.php => IsHorizonQueueEmpty.php} (83%) diff --git a/app/Actions/Application/AnyDeploymentsRunning.php b/app/Actions/Application/IsHorizonQueueEmpty.php similarity index 83% rename from app/Actions/Application/AnyDeploymentsRunning.php rename to app/Actions/Application/IsHorizonQueueEmpty.php index 308226955..17966b8a0 100644 --- a/app/Actions/Application/AnyDeploymentsRunning.php +++ b/app/Actions/Application/IsHorizonQueueEmpty.php @@ -5,7 +5,7 @@ namespace App\Actions\Application; use Laravel\Horizon\Contracts\JobRepository; use Lorisleiva\Actions\Concerns\AsAction; -class AnyDeploymentsRunning +class IsHorizonQueueEmpty { use AsAction; @@ -25,15 +25,13 @@ class AnyDeploymentsRunning in_array('server:'.$hostname, $tags); }); if ($running->count() > 0) { - dump($running); - echo 'true'; + echo 'false'; - return true; + return false; } } + echo 'true'; - echo 'false'; - - return false; + return true; } }