Files
worldmonitor/scripts
Elie Habib bc4f80ad90 fix(gdelt-intel): extend TTL to 24h, restore 6 topics + client tabs, fix health thresholds (#1846)
* fix(gdelt-intel): extend CACHE_TTL to 24h, restore 6 topics, fix health thresholds

- CACHE_TTL: 21600 (6h) → 86400 (24h) so verifySeedKey merge fallback always has a prior snapshot
  when GDELT 429s all topics across multiple cron cycles
- Restore 6 topics (sanctions + intelligence were dropped; 4-topic validate>=4 created a brittle all-or-nothing gate)
- validate threshold: >=4 → >=3 (at least 3 of 6 topics must return articles)
- health.js gdeltIntel maxStaleMin: 300 → 150 (2h cron + 30min grace; matches actual cron interval)
- health.js cableHealth maxStaleMin: 60 → 10080 (on-demand handler writes seed-meta with 7-day TTL)

* fix(gdelt-intel): expose sanctions/intelligence tabs to client; fix health thresholds

- Add sanctions and intelligence to client INTEL_TOPICS so the new seed
  buckets are actually requested and rendered in GdeltIntelPanel
- Quote "intelligence agency" in seed query (matches project convention
  for multi-word GDELT phrases; prevents false positive token splits)
- cableHealth maxStaleMin: 10080 → 90 (ais-relay warm-ping runs every 30min;
  90min = 3× interval; 10080 would hide relay failures for 7 days)
2026-03-19 03:51:04 +04:00
..