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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| knowledge_base_routes.py | ||
| knowledge_base_schemas.py | ||
| routes.py | ||
| schemas.py | ||