feat(vessels): present AISStream + VesselAPI as two independent providers

- keystore KEY_REGISTRY copy splits the two keys (open/shared US-coast WS vs
  commercial Hormuz 5x/day REST); VesselAPI no longer reads as an AIS backup.
- vesselapi.py docstring drops 'fallback'; states both are first-class.
- /api/vessels docstring: last-known is the union (extra.src aisstream vs
  vesselapi).
- tests: VesselAPI idles/polls independently of the AISStream key.
This commit is contained in:
Sirius DevOps 2026-08-29 00:40:41 -04:00
commit e7429a4161
4 changed files with 65 additions and 9 deletions

View file

@ -1472,10 +1472,11 @@ async def list_vessels(
limit: int = Query(2000, ge=1, le=5000),
timestamp: str | None = Query(None, description="ISO time — DVR 1-min tracks instead of live"),
):
"""AIS last-known from the AISStream worker and/or the VesselAPI poller.
"""AIS last-known — union of two independent providers.
Empty without either key / until the first successful poll. VesselAPI
positions upsert into the same store (extra.src = "vesselapi").
AISStream (extra.src="aisstream", live US-coast WebSocket) and VesselAPI
(extra.src="vesselapi", Strait of Hormuz 5×/day poll) both upsert into the
same store. Empty without either key / until the first successful poll.
"""
if bbox:
_parse_bbox_query(bbox)