Commit Graph
9 Commits
Author SHA1 Message Date
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
Lago 98c71d4232 Migrate from local Supabase stack to external Supabase instance
- Reduce docker-compose from 6 services to 1 (worker only)
- Connect via supavisor pooled port (6543) on dedicated Supabase
- Add willhaben_tracker schema with search_path in asyncpg pool init
- Create consolidated migration SQL for Supabase SQL Editor
- Update .env.example with new connection pattern
2026-07-04 10:33:27 +02:00
Lago 46c1b01e98 refactor: consolidate 3 migrations into single 01-schema.sql, remove legacy files 2026-06-17 13:42:14 +02:00
Lago 88059fa0ee fix: skip notifications during baseline load, add /interval command with /list display 2026-06-17 08:44:35 +02:00
Lago fcd192420f feat: add missing migration 02 (images+pricing) and 03 (global keywords) 2026-06-16 22:08:55 +02:00
Lago 0b19c3d8f2 fix: mount all migrations in compose, fix post-boot grants for new schema 2026-06-16 22:07:49 +02:00
Lago 3136d55742 fix: Postgres auth + worker startup 2026-06-16 19:38:32 +02:00
Lago 89a00c3295 feat: DB-driven whitelist with is_admin, auto-register on /start, admin commands (/adduser /removeuser /users) 2026-06-16 19:24:51 +02:00
Lago d32ce26d9e feat: supabase schema migrations + kong gateway config 2026-06-16 19:06:50 +02:00