Skip to content

Commit 3093100

Browse files
committed
Re-register scheduled commands
1 parent 5f32a29 commit 3093100

File tree

2 files changed

+10
-31
lines changed

2 files changed

+10
-31
lines changed

app/Console/Kernel.php

Lines changed: 0 additions & 31 deletions
This file was deleted.

routes/console.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@
22

33
use Illuminate\Foundation\Inspiring;
44
use Illuminate\Support\Facades\Artisan;
5+
use Illuminate\Support\Facades\Schedule;
6+
use Spatie\ScheduleMonitor\Models\MonitoredScheduledTaskLogItem;
57

68
Artisan::command('inspire', function () {
79
$this->comment(Inspiring::quote());
810
})->purpose('Display an inspiring quote')->hourly();
11+
12+
13+
Schedule::command('schedule-monitor:sync')->dailyAt('04:56');
14+
Schedule::command('model:prune', ['--model' => MonitoredScheduledTaskLogItem::class])->daily();
15+
Schedule::command('horizon:snapshot')->everyFiveMinutes();
16+
Schedule::command('lio:post-article-to-twitter')->twiceDaily(14, 18);
17+
Schedule::command('lio:generate-sitemap')->daily()->graceTimeInMinutes(25);
18+
Schedule::command('lio:update-article-view-counts')->twiceDaily();

0 commit comments

Comments
 (0)