|
@@ -30,13 +30,19 @@ class Kernel extends ConsoleKernel
|
|
|
/**
|
|
|
* Define the application's command schedule.
|
|
|
*
|
|
|
- * @param \Illuminate\Console\Scheduling\Schedule $schedule
|
|
|
+ * @param \Illuminate\Console\Scheduling\Schedule $schedule
|
|
|
* @return void
|
|
|
*/
|
|
|
protected function schedule(Schedule $schedule)
|
|
|
{
|
|
|
- $path = storage_path('logs/'.date('Y-m-d').'-schedule.log');
|
|
|
+ $path = storage_path('logs/' . date('Y-m-d') . '-schedule.log');
|
|
|
$schedule->command('post:calc_weight')
|
|
|
->everyFifteenMinutes()->withoutOverlapping()->appendOutputTo($path);
|
|
|
+ $schedule->command('excellent:residents')
|
|
|
+ ->dailyAt('00:05')
|
|
|
+ ->withoutOverlapping()->appendOutputTo($path);
|
|
|
+ $schedule->command('ranking:list')
|
|
|
+ ->dailyAt('00:05')
|
|
|
+ ->withoutOverlapping()->appendOutputTo($path);
|
|
|
}
|
|
|
}
|