modcomms/backend/app/api
michael 42bf5ad003 Fix stuck processing state: auto-fail stale jobs, improve active job detection
- Frontend: only treat parsing_documents/distilling as actively running;
  pending jobs older than 2 minutes are ignored as stale
- Backend: add fail_stale_jobs() that marks pending/active jobs older than
  5 minutes as failed before checking for active jobs in trigger_processing
- Prevents UI from getting stuck on old jobs that never completed

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-12 16:03:25 -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 stuck processing state: auto-fail stale jobs, improve active job detection 2026-02-12 16:03:25 -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