Add (scheduler): sitemap

This commit is contained in:
2023-11-20 01:13:48 +08:00
parent 79dca4ca3b
commit 0ddce5e91e

View File

@@ -15,6 +15,7 @@ class Kernel extends ConsoleKernel
*/ */
protected function schedule(Schedule $schedule): void protected function schedule(Schedule $schedule): void
{ {
$schedule->command('sitemap:generate')->daily();
$schedule->call(function () { $schedule->call(function () {
BrowseAndWriteWithAIJob::dispatch()->onQueue('default')->onConnection('default'); BrowseAndWriteWithAIJob::dispatch()->onQueue('default')->onConnection('default');