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; } }