Commit Graph
5 Commits
Author SHA1 Message Date
Lago afb360c3ad Use direct PostgreSQL host
CI / lint-and-test (push) Has been cancelled
2026-07-12 21:25:39 +02:00
Lago 4ea1f3c03a fix: use asyncio.run() in entrypoint for Python 3.12 compatibility
CI / lint-and-test (push) Has been cancelled
2026-07-10 22:35:53 +02:00
Lago 0c20799f9a fix: remove redundant asyncio import in entrypoint.sh 2026-07-10 22:07:12 +02:00
Lago 3791508e20 fix: add missing asyncio import in entrypoint.sh 2026-07-10 21:27:54 +02:00
hermes f540cbe7ef feat(phase-0): stability hardening — search path fix, auto-migrations, graceful shutdown, health endpoint
- Remove SET search_path from db.py and migration SQL (Supabase uses public schema)
- Add migrate.py with tracking table for forward-only SQL migrations
- Add entrypoint.sh: waits for DB, runs migrations, then starts app
- Copy 01-schema.sql + zz-seed.sql to worker/src/migrations/
- Add health.py: /health endpoint (200/503) with DB connectivity + scheduler staleness checks
  - /stats endpoint with keyword/ad/notification counts
- Rewrite main.py shutdown sequence: signal handler, 5s grace for scheduler, ordered cleanup
- Update Dockerfile: HEALTHCHECK directive, entrypoint, COPY migrations
- Update docker-compose.yml: stop_grace_period=15s, healthcheck config, env vars
- Add aiohttp>=3.9 to requirements.txt for health server
2026-07-04 11:30:45 -04:00