fix: pipeline reliability — WS, summarizer, ingest, health

Stop the live HUD reconnect storm (nginx WS snippet + backoff), copy
intel/nous_client into the summarizer image, and make event ingest
idempotent on URL. GDELT uses the DOC API; NWS no longer sends bbox;
FIRMS is one ON CONFLICT batch; GET /api/aircraft serves last-known.
Health reports freshness without 503ing docker. EONET + CISA KEV added.
This commit is contained in:
Sirius DevOps 2026-08-28 21:49:05 -04:00
commit d81ea68dec
26 changed files with 1164 additions and 110 deletions

View file

@ -4,6 +4,8 @@ from urllib.parse import urljoin, urlparse
import datetime
import re
from newsScraper.feed_util import article_timestamp, is_audio_url
class NewsRSSSpider(Spider):
"""Crawl the curated news sources in urls.txt and extract articles.
@ -87,6 +89,8 @@ class NewsRSSSpider(Spider):
or node.xpath('updated/text()').get()
)
if link:
if is_audio_url(link):
continue
yield scrapy.Request(
link,
callback=self.parse_article,
@ -112,5 +116,5 @@ class NewsRSSSpider(Spider):
'url': response.url,
'text': pure_text,
'domain': urlparse(response.url).netloc,
'timestamp': datetime.datetime.now().isoformat()
'timestamp': article_timestamp(response.meta.get('date')).isoformat()
}