modcomms/backend/app/api
michael 7835f557aa Fix processing job not visible to background task (FK violation)
The background task runs in its own DB session but the job row hadn't been
committed yet by the request session. The background task couldn't find
the job, causing FK violations when trying to create spec_versions.

Fix: explicitly commit the request session after creating the job and
before adding the background task, ensuring the job row is visible.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 16:09:50 -06:00
..
__init__.py Add Knowledge Base management system for AI agent specs 2026-02-12 15:00:36 -06:00
knowledge_base_routes.py Fix processing job not visible to background task (FK violation) 2026-02-12 16:09:50 -06:00
knowledge_base_schemas.py Add Knowledge Base management system for AI agent specs 2026-02-12 15:00:36 -06:00
routes.py Wire up Errors tab in Auditing: auto-create ErrorItem on Analysis Error 2026-02-12 13:55:16 -06:00
schemas.py Wire up Errors tab in Auditing: auto-create ErrorItem on Analysis Error 2026-02-12 13:55:16 -06:00