Operaties
Dagelijkse operaties en onderhoud.
Gezondheid
- API-liveness:
GET /api/v1/health - API-readiness:
GET /api/v1/health/ready
Database
PostgreSQL is de persistente source of truth en de initiële taakwachtrij. Dagelijkse backup voor ontwikkeling/pilot; test herstel in een schone omgeving.
Backup:
pg_dump -h localhost -U ai_operator -d ai_operator -F c -f /backups/ai_operator.dump
Herstel:
createdb -O ai_operator ai_operator_restored
pg_restore -h localhost -U ai_operator -d ai_operator_restored /backups/ai_operator.dump
Agent
- Heartbeat elke 5 seconden; offline na 2 minuten zonder heartbeat.
- Taakverval en idempotentiesleutels beschermen tegen dubbele uitvoering.
Migraties
Alembic-migraties staan in apps/api/alembic. Toepassen met:
cd apps/api
uv run alembic upgrade head
