Skip to content

Commit

Permalink
queue property of queue config can be a array
Browse files Browse the repository at this point in the history
  • Loading branch information
okaufmann committed Feb 23, 2023
1 parent b6c0a97 commit 79f6a9b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Commands/LaravelHorizonDoctorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,12 @@ protected function checkDefaultQueuesAreProcessed(array $horizonConfigs, array $
->flatten()
->unique()
->values();
$defaultQueue = $queueConfig['queue'];
if (! $processedQueuesInHorizon->contains($defaultQueue)) {
$errors[] = "Default queue `{$defaultQueue}` of connection `{$connectionName}` will not be processed by any worker set in config/horizon.php";

$handledQueues = collect($queueConfig['queue']);
foreach ($handledQueues as $queue) {
if (! $processedQueuesInHorizon->contains($queue)) {
$errors[] = "Queue `{$queue}` of connection `{$connectionName}` will not be processed by any worker set in config/horizon.php";
}
}

if ($errors->count()) {
Expand Down

0 comments on commit 79f6a9b

Please sign in to comment.