Add (tint)
This commit is contained in:
@@ -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');
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user