Change order of commands
This commit is contained in:
@@ -34,14 +34,13 @@ class Kernel extends ConsoleKernel
|
|||||||
protected function schedule(Schedule $schedule)
|
protected function schedule(Schedule $schedule)
|
||||||
{
|
{
|
||||||
if (env('DB_INSTALL') == 1) {
|
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, 'fetching');
|
||||||
$this->execute($schedule, 'notification');
|
$this->execute($schedule, 'notification');
|
||||||
$this->execute($schedule, 'work');
|
$this->execute($schedule, 'work');
|
||||||
$schedule->command('sla-escalate')->everyThirtyMinutes();
|
$schedule->command('sla-escalate')->everyThirtyMinutes();
|
||||||
|
if ($this->getCurrentQueue() != 'sync') {
|
||||||
|
$schedule->command('queue:listen '.$this->getCurrentQueue().' --sleep 60')->everyMinute();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user