Add (tint)

This commit is contained in:
2023-11-21 01:21:30 +08:00
parent 7166eb610c
commit e4bab8dcec
48 changed files with 229 additions and 58 deletions

View File

@@ -15,11 +15,11 @@ class Kernel extends ConsoleKernel
*/
protected function schedule(Schedule $schedule): void
{
$schedule->command('sitemap:generate')->daily();
$schedule->command('sitemap:generate')->daily()->name('sitemap-generate-daily');
$schedule->call(function () {
BrowseAndWriteWithAIJob::dispatch()->onQueue('default')->onConnection('default');
})->dailyAt('00:00');
})->everySixHours()->name('write-a-job-6hrs');
$schedule->call(function () {
$future_post = Post::whereNotNull('published_at')->where('status', 'future')->where('published_at', '>=', now())->orderBy('published_at', 'ASC')->first();
@@ -28,7 +28,7 @@ protected function schedule(Schedule $schedule): void
PublishIndexPostJob::dispatch($future_post->id)->onQueue('default')->onConnection('default');
}
})->everyMinute();
})->everyMinute()->name('schedule-future-post');
}