Jobs deployment runbook¶
Both users start with empty searches and profiles. Add real applications through Add role → Applied on after deployment, then fill the profile before asking chat for assessments.
Before merging through Sylox¶
Set DB_PASSWORD_JOBS in snoopy's existing deployment environment to a new, unique password. Keep it out of Git, terminal transcripts and merge-request text. A documentation placeholder is <SECRET_VALUE>. Compose passes the same value to postgres, migrations and the Jobs API. The MCP URL is already wired as LORYTH_JOBS_URL=http://loryth-jobs-api:8000.
No manual database step is normally needed. On deploy the migration container runs ensure-service-databases.py watch jobs, creates the missing roles/databases, and applies v00–v04. Existing databases and passwords are left as configured. The new database's role can install the trusted uuid-ossp extension.
If a database needs creating separately, use the existing deployment compose wrapper (the variable compose below must be its actual path):
The runner executes explicit maintenance commands with the same database environment. The password is read inside the container, never placed in SQL on the command line. Run the normal migrations action after creating the database.
Merge and follow deploy¶
Use Sylox to ship the branch after its required checks pass. Follow the main publish/deploy actions and run the existing delivery health script. A failed post-merge deploy does not roll back the merge automatically.
Check /api/v1/jobs/health, open Jobs under each account, and confirm that Jobs, Companies and Search profile are empty for a new account. Add one test role through the UI, apply from its card, and confirm the follow-up in its Application tab. Check Jobs and Companies filters and the phone filter drawer. Remove the test role if it was only for this check.
If Jobs is unavailable, the gateway remains up and unrelated routes continue to work. Jobs requests return 502 until its API resolves. Review Jobs logs and the migration action without restarting unrelated services.
Local checks¶
Run service commands from server/services/loryth-jobs: make sync, make format, make lint, make test. Run Docker checks from the repository root with server/services/loryth-jobs/.venv/bin/python -m pytest docker/tests -v. Run pnpm run lint, pnpm run typecheck, pnpm run build from ui using pnpm 9. Run app tests in ui/packages/app with pnpm test src/tests/jobs src/tests/chat/ChatItems.test.tsx src/tests/chat/chatStream.test.ts. The browser suite is pnpm exec playwright test --config playwright.jobs.config.ts; it starts an MSW fixture server on port 3187 and writes screenshots under docs/content/product/screenshots/jobs/.
See the verification record for the commands and results from this implementation.