SurfSense/surfsense_backend/app/tasks
DESKTOP-RTLN3BA\$punk da64433439 fix(db): reap orphaned idle-in-transaction sessions on the Celery engine
The long-running ingestion/podcast/video tasks run on a separate Celery
engine (NullPool), so the web engine's idle_in_transaction_session_timeout
did not cover them — which is exactly where the original 11h zombie
(INSERT INTO chunks) came from. Apply the same protection to the Celery
engine with a generous 60-minute default so a worker that hangs/crashes
mid-transaction can't hold locks on documents/chunks indefinitely, while
never reaping a legitimate per-document embed window.

- config + .env.example: DB_CELERY_IDLE_IN_TX_TIMEOUT_MS (default 3600000).

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-16 16:26:04 -07:00
..
celery_tasks fix(db): reap orphaned idle-in-transaction sessions on the Celery engine 2026-06-16 16:26:04 -07:00
chat chore: linting 2026-06-11 15:31:43 -07:00
connector_indexers feat(refactor): refactor payment system to implement unified credit wallet. 2026-06-10 16:49:03 -07:00
document_processors feat(refactor): refactor payment system to implement unified credit wallet. 2026-06-10 16:49:03 -07:00
__init__.py feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
composio_indexer.py chore: ran frontend and backend linting 2026-02-01 22:54:25 +05:30