feat(store): JobsRepo CRUD over ix_jobs + integration fixtures #20
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/jobs-repo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
JobsRepo covers the full job-lifecycle surface: insert_pending (idempotent), claim_next_pending (FOR UPDATE SKIP LOCKED), get, get_by_correlation, mark_done, mark_error, update_callback_status, sweep_orphans.
Integration fixtures skip cleanly without a DB; with a DB, Alembic runs in a subprocess to sidestep pytest-asyncio loop collisions. 15 integration tests pass locally against postgres:16.
Chunk 3 Task 3.3. Forgejo Actions trigger is flaky; local verification is the gate (
uv run pytest tests/unit+IX_TEST_DATABASE_URL=... uv run pytest tests/integrationboth green).