fedi-feed-router/backend/routes/console.php
2025-08-15 18:20:19 +02:00

22 lines
630 B
PHP

<?php
use Domains\Article\Jobs\ArticleDiscoveryJob;
use Domains\Platform\Jobs\PublishNextArticleJob;
use Domains\Platform\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();