SurfSense/surfsense_backend/app/config
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
..
__init__.py fix(db): reap orphaned idle-in-transaction sessions on the Celery engine 2026-06-16 16:26:04 -07:00
global_llm_config.example.yaml feat: upgrade MiniMax default model to M3 2026-06-02 01:48:11 +08:00
model_list_fallback.json feat: added improved llm model selector 2026-02-20 14:28:01 -08:00
uvicorn.py Fixed all ruff lint and formatting errors 2025-07-24 14:43:48 -07:00
vision_model_list_fallback.json Add dynamic vision model list from OpenRouter with combobox selector 2026-04-07 23:39:52 +02:00