This commit is contained in:
Manish Verma
2017-01-05 19:09:46 +05:30
parent f2981b7ec3
commit 1b45e5a952
3 changed files with 13 additions and 9 deletions

View File

@@ -30,7 +30,8 @@ class Kernel extends ConsoleKernel
protected function schedule(Schedule $schedule)
{
if (env('DB_INSTALL') == 1) {
if ($this->getCurrentQueue() != "sync") {
if ($this->getCurrentQueue() != 'sync') {
$schedule->command('queue:listen '.$this->getCurrentQueue().' --sleep 60')->everyMinute();
}
$this->execute($schedule, 'fetching');