Phase 1: Add pgqueuer infrastructure

- Add pgqueuer dependency to pyproject.toml
- Create worker.py with schema installation and job handler registration
- Add make worker command to Makefile
- Update make dev to run worker alongside backend/frontend
- Use has_table() check for idempotent schema installation
- Register 'random_number' job handler (placeholder that logs for now)
This commit is contained in:
counterweight 2025-12-21 22:37:04 +01:00
parent 15bae15731
commit 10c0316603
Signed by: counterweight
GPG key ID: 883EDBAA726BD96C
4 changed files with 55 additions and 44 deletions

View file

@ -11,4 +11,4 @@ Use the `TEST` variable to select specific tests:
- Backend: `make test-backend TEST="tests/test_booking.py"` or `TEST="tests/test_booking.py::TestClass::test_method"`
- Frontend: `make test-frontend TEST="app/login"` (file pattern)
- E2E: `make test-e2e TEST="auth"` (matches e2e/auth.spec.ts)
- Don't do `2>&1 | tail`. Let the output hit the console when running the tests.
- Don't use `tail`. Let the output hit the console when running the tests.