forked from Furumi/furumi-web
Refresh subscribed podcast feeds in a background job
The podcast_refresh job runs every five minutes and refreshes the podcasts whose next check is due: conditional requests (ETag, Last-Modified), 32 MiB and 60 s limits, the shared music-dht parser and PodcastStore::apply_feed. A chain of permanent redirects moves the feed and becomes an alias. Healthy feeds are checked hourly with a stable spread; failures back off from 15 minutes up to a day, honouring Retry-After. Accounts subscribed to the same feed URL share one request, at most four run at once, and one run at a time holds an advisory lock. runner::refresh_now is the manual refresh for one subscribed podcast, at most every 30 seconds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
04ae7d5bd1
commit
bf9a6abc3f
9 files changed
+1273
-4
No files matched your search
@@ -1311,6 +1311,7 @@ async fn run_scheduled_job(
|
||||
&& job_name != "lastfm_scrobble"
|
||||
&& job_name != "archive_cleanup"
|
||||
&& job_name != "artwork_backfill"
|
||||
&& job_name != "podcast_refresh"
|
||||
{
|
||||
tracing::warn!(job = job_name, "Skipping: agent_enabled=false");
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user