Files
celery/database.py
giles bbcb79cc1e Fix database connection pool leak in init_db()
init_db() was creating new pools without checking if one already exists,
causing "too many clients already" errors under load. Added early return
if pool is already initialized and set explicit pool limits (min=2, max=10).

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 23:01:43 +00:00

66 KiB