fix(adsb): keep aircraft ingest alive with no browser viewport #68
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/adsb-idle-watch-poll"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
aircraft_positionshad no rows after 2026-11-20 04:58 UTC although USGS/news ingest kept running: the ADSB refresh loop inapp/main.pyonly pollsmanager.viewports()(browser tabs), so with nobody watching the map it persists nothing.When no client viewport is registered the loop now sweeps the chokepoint presets through the same
fetch_aircraft(persist=True)path.ADSB_REFRESH_INTERVAL(8 s, client viewports)ADSB_WATCH_ENABLED(1) /ADSB_WATCH_INTERVAL(30 s, idle sweep over 5 boxes, 65-81 nm radius each)Verified live inside the old pod by running the new loop with no viewport: 5x ADSB.lol 200s per cycle for 75 s,
aircraft_positionsgained 164 rows in 5 min andmax(ts)advanced to 22:30 UTC.Tests:
tests/test_adsb_watch.py(3 pass).