job(new VersionCheck)->daily()->withoutOverlapping(); $schedule->command('ninja:check-data')->daily()->withoutOverlapping(); $schedule->job(new ReminderJob)->daily()->withoutOverlapping(); $schedule->job(new CompanySizeCheck)->daily()->withoutOverlapping(); $schedule->job(new UpdateExchangeRates)->daily()->withoutOverlapping(); $schedule->job(new BillingSubscriptionCron)->daily()->withoutOverlapping(); $schedule->job(new RecurringInvoicesCron)->hourly()->withoutOverlapping(); /* Run hosted specific jobs */ if (Ninja::isHosted()) { $schedule->job(new AdjustEmailQuota())->daily()->withoutOverlapping(); $schedule->job(new SendFailedEmails())->daily()->withoutOverlapping(); } /* Run queue's with this*/ if (Ninja::isSelfHost()) { $schedule->command('queue:work --daemon')->everyMinute()->withoutOverlapping(); //we need to add this as we are seeing cached queues mess up the system on first load. $schedule->command('queue:restart')->everyFiveMinutes()->withoutOverlapping(); $schedule->job(new SchedulerCheck)->everyFiveMinutes()->withoutOverlapping(); } } /** * Register the commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }