mirror of
https://github.com/idanoo/laravel-resque.git
synced 2025-07-01 19:12:15 +00:00
fix queue option on WorkCommand
This commit is contained in:
parent
8d88957e28
commit
5fd6530f47
1 changed files with 2 additions and 3 deletions
|
@ -46,7 +46,6 @@ class WorkCommand extends IlluminateCommand
|
||||||
$interval = (int)$this->option('interval');
|
$interval = (int)$this->option('interval');
|
||||||
$count = (int)$this->option('count');
|
$count = (int)$this->option('count');
|
||||||
|
|
||||||
$queues = explode(',', $queue);
|
|
||||||
$logLevel = $this->getLogLevel();
|
$logLevel = $this->getLogLevel();
|
||||||
|
|
||||||
if ($count > 1) {
|
if ($count > 1) {
|
||||||
|
@ -60,11 +59,11 @@ class WorkCommand extends IlluminateCommand
|
||||||
}
|
}
|
||||||
|
|
||||||
if (0 === $pid) {
|
if (0 === $pid) {
|
||||||
$this->startWorker($queues, $interval, $logLevel);
|
$this->startWorker($queue, $interval, $logLevel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->startWorker($queues, $interval, $logLevel);
|
$this->startWorker($queue, $interval, $logLevel);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue