fedi-feed-router/backend/routes/console.php
myrmidex da4fb6ac72 Refresh articles
- every 30 minutes
- after completion of onboarding
2025-08-15 02:58:14 +02:00

22 lines
592 B
PHP

<?php
use App\Jobs\ArticleDiscoveryJob;
use App\Jobs\PublishNextArticleJob;
use App\Jobs\SyncChannelPostsJob;
use Illuminate\Support\Facades\Schedule;
Schedule::call(function () {
SyncChannelPostsJob::dispatchForAllActiveChannels();
})->everyTenMinutes()->name('sync-lemmy-channel-posts');
Schedule::job(new PublishNextArticleJob)
->everyFiveMinutes()
->name('publish-next-article')
->withoutOverlapping()
->onOneServer();
Schedule::job(new ArticleDiscoveryJob)
->everyThirtyMinutes()
->name('refresh-articles')
->withoutOverlapping()
->onOneServer();