From ab77792226dbb0b13303b898ecff3675e9dfb86f Mon Sep 17 00:00:00 2001 From: Manish Verma Date: Thu, 16 Aug 2018 21:01:07 +0530 Subject: [PATCH] Change order of commands --- app/Console/Kernel.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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(); + } } }