command('communications:sync-2') ->everyThreeHours() // ->between("18:00", "06:00") // ->timezone('Europe/Rome') ->hourly() ->environments('production') ->withoutOverlapping() ->appendOutputTo(\storage_path("logs/scheduler-" . date('Y-m-d') . ".log")); $schedule->command('job:check') ->twiceDaily(9, 16) ->withoutOverlapping(); $schedule->command('queue:restart') ->everyFifteenMinutes() ->runInBackground() ->environments('production') ->withoutOverlapping(); $schedule->command('export:check-tenant-export-requests') ->hourly() ->runInBackground() ->environments('production') ->withoutOverlapping() ->appendOutputTo(\storage_path("logs/exporter-" . date('Y-m-d') . ".log")); } /** * Register the commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }