Files
worldmonitor/api
Elie Habib c024380dde fix(health): increase gdeltIntel maxStaleMin 120→180 to stop STALE flapping (#1792)
* fix(health): increase gdeltIntel maxStaleMin from 120 to 180

Seeder runs every ~120min but threshold was exactly 120min, causing
STALE/CRIT flapping whenever there's any timing jitter. 180min gives
a 60min buffer to prevent oscillation.

* fix(health): increase gdeltIntel CACHE_TTL to 4h to match maxStaleMin:180

CACHE_TTL was 7200s (120min) while health.js maxStaleMin was raised to
180min. When a seed run is delayed past 120min the data key expires,
health evaluates EMPTY/CRIT before the stale check can ever fire, making
the 60min warning buffer unreachable. Setting TTL to 14400s (240min)
ensures the key outlives the stale threshold so STALE_SEED triggers
before EMPTY/CRIT on delayed runs.
2026-03-18 08:25:25 +04:00
..