mirror of
https://github.com/koala73/worldmonitor.git
synced 2026-05-12 18:16:20 +02:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user