fix(seeds): increase forecast TTL from 3600s to 4200s (#1625)

TTL (1h) equaled cron interval (1h), leaving zero buffer for container
cold starts. Health saw EMPTY records=0 during the gap between key
expiry and next seed run. 70min TTL covers the cold start window.
This commit is contained in:
Elie Habib
2026-03-15 08:23:59 +04:00
committed by GitHub
parent 0d330dd8ee
commit 799178e4ba

View File

@@ -10,7 +10,7 @@ if (_isDirectRun) loadEnvFile(import.meta.url);
const CANONICAL_KEY = 'forecast:predictions:v1';
const PRIOR_KEY = 'forecast:predictions:prior:v1';
const TTL_SECONDS = 3600;
const TTL_SECONDS = 4200; // 70min — covers 1h cron interval + cold start gap
const THEATER_IDS = [
'iran-theater', 'taiwan-theater', 'baltic-theater',