Change order of commands

This commit is contained in:
Manish Verma
2018-08-16 21:01:07 +05:30
parent 6c947100ad
commit ab77792226

View File

@@ -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();
}
}
}