mirror of
https://github.com/zvx-echo6/central.git
synced 2026-08-26 17:31:39 +00:00
Central - data hub spine. Adapters -> NATS/JetStream -> archive.
- Python 88.6%
- HTML 9.4%
- CSS 1.2%
- Shell 0.6%
- PLpgSQL 0.2%
The v0.10.3 deploy halted at migration 032 because events_adapter_fkey
(ON DELETE RESTRICT) blocked the DELETE: 66 state_511_atis events + 2379
state_511_atis_cameras events still reference the adapter rows. Matt's
explicit rule was 'preserve historical events as a record', so the rows
must stay -- they just become soft-deleted tombstones.
Add 033_soft_disable_state_511_atis_adapters.sql:
UPDATE config.adapters
SET enabled = false, paused_at = NOW()
WHERE name IN ('state_511_atis', 'state_511_atis_cameras');
Effect: list_enabled_adapters() filters on enabled=true, so on next
supervisor restart these rows fall out of the startup set naturally. The
2 'Unknown adapter type' WARNING lines from v0.10.3's degraded deploy
go away.
Amend 032's header comment to note the supersession (don't delete 032 --
the migration ledger is append-only).
No code change. 998/1 tests still green. Dry-run of 033 against live db
returns UPDATE 2 cleanly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| docs | ||
| etc-templates | ||
| scripts | ||
| sql | ||
| src/central | ||
| systemd | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .python-version | ||
| CHANGELOG.md | ||
| LICENSE | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Central
Central is the data hub spine for the infrastructure. Adapters normalize upstream sources into a canonical event shape, publish CloudEvents to NATS/JetStream, and archive to TimescaleDB for historical query. Single-LXC deployment.
Status
Phase 0 — scaffold. Not yet operational.
Architecture
- Python 3.12 (uv-managed)
- NATS + JetStream for live event bus
- TimescaleDB + PostGIS for archive and geospatial query
- One supervisor process managing adapter lifecycle
- One archive consumer process persisting events to TimescaleDB
- Both processes systemd-managed
Testing
See docs/test-database.md for test database setup.
License
MIT. See LICENSE.