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:
parent
b98d8d003c
commit
6f9a710726
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue