fix horizon command name
This commit is contained in:
parent
f14cef0651
commit
f0985a7e47
1 changed files with 5 additions and 7 deletions
|
|
@ -5,7 +5,7 @@
|
||||||
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 @@ public function handle()
|
||||||
in_array('server:'.$hostname, $tags);
|
in_array('server:'.$hostname, $tags);
|
||||||
});
|
});
|
||||||
if ($running->count() > 0) {
|
if ($running->count() > 0) {
|
||||||
dump($running);
|
echo 'false';
|
||||||
echo 'true';
|
|
||||||
|
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
echo 'true';
|
||||||
|
|
||||||
echo 'false';
|
return true;
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue