From 799178e4ba2df1084044cda21cd505d752006d4e Mon Sep 17 00:00:00 2001 From: Elie Habib Date: Sun, 15 Mar 2026 08:23:59 +0400 Subject: [PATCH] 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. --- scripts/seed-forecasts.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/seed-forecasts.mjs b/scripts/seed-forecasts.mjs index ec0462410..53c471ab6 100644 --- a/scripts/seed-forecasts.mjs +++ b/scripts/seed-forecasts.mjs @@ -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',