fix horizon command name
This commit is contained in:
@@ -5,7 +5,7 @@ namespace App\Actions\Application;
|
|||||||
use Laravel\Horizon\Contracts\JobRepository;
|
use Laravel\Horizon\Contracts\JobRepository;
|
||||||
use Lorisleiva\Actions\Concerns\AsAction;
|
use Lorisleiva\Actions\Concerns\AsAction;
|
||||||
|
|
||||||
class AnyDeploymentsRunning
|
class IsHorizonQueueEmpty
|
||||||
{
|
{
|
||||||
use AsAction;
|
use AsAction;
|
||||||
|
|
||||||
@@ -25,15 +25,13 @@ class AnyDeploymentsRunning
|
|||||||
in_array('server:'.$hostname, $tags);
|
in_array('server:'.$hostname, $tags);
|
||||||
});
|
});
|
||||||
if ($running->count() > 0) {
|
if ($running->count() > 0) {
|
||||||
dump($running);
|
|
||||||
echo 'true';
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
echo 'false';
|
echo 'false';
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
echo 'true';
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user