diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index a8224a419..148d8d871 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -34,14 +34,13 @@ class Kernel extends ConsoleKernel protected function schedule(Schedule $schedule) { if (env('DB_INSTALL') == 1) { - if ($this->getCurrentQueue() != 'sync') { - $schedule->command('queue:listen '.$this->getCurrentQueue().' --sleep 60')->everyMinute(); - } - $this->execute($schedule, 'fetching'); $this->execute($schedule, 'notification'); $this->execute($schedule, 'work'); $schedule->command('sla-escalate')->everyThirtyMinutes(); + if ($this->getCurrentQueue() != 'sync') { + $schedule->command('queue:listen '.$this->getCurrentQueue().' --sleep 60')->everyMinute(); + } } }