news: weekend ingestion cadence 6h → 2h

A 6h gap meant weekend visitors could see the feed sit on the same
1pm batch through to dinner. Tightening to 2h gives roughly 12
ingests/weekend-day at a fraction of the active-window load (which
stays at 20-min cadence).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Giorgio Gilestro 2026-05-23 21:06:17 +02:00
parent b98d8d003c
commit 6f9a710726

View file

@ -84,10 +84,10 @@ class CadencePolicy:
DEFAULT_POLICY = CadencePolicy() DEFAULT_POLICY = CadencePolicy()
# News + tagging: 3 runs/hour during the active window (20-min gap), # News + tagging: 3 runs/hour during the active window (20-min gap),
# every 3h off-hours, every 6h on weekends. Cron fires every 20 min; # every 3h off-hours, every 2h on weekends. Cron fires every 20 min;
# the policy gates whether each fire actually does work. # the policy gates whether each fire actually does work.
NEWS_POLICY = CadencePolicy( NEWS_POLICY = CadencePolicy(
active_gap_h=1.0 / 3.0, # 20 minutes active_gap_h=1.0 / 3.0, # 20 minutes
off_hours_gap_h=3.0, off_hours_gap_h=3.0,
weekend_gap_h=6.0, weekend_gap_h=2.0,
) )