fix: add missing DB pool settings to Settings — CRITICAL deploy blocker (#197) - #197
Conversation
session.py references DB_POOL_SIZE, DB_POOL_MAX_OVERFLOW, DB_POOL_TIMEOUT and DB_POOL_RECYCLE_TIMEOUT but none of these existed in the Settings class, causing AttributeError on startup and 18+ consecutive Railway deploy failures. Adds sensible Railway-safe defaults (pool_size=5, max_overflow=10).
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesConfiguration settings
Estimated code review effort: 1 (Trivial) | ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 OpenGrep (1.25.0)backend/app/core/config.py┌──────────────┐ �[32m✔�[39m �[1mOpengrep OSS�[0m �[1m Loading rules from local config...�[0m Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🚨 THIS WAS THE REAL DEPLOY BLOCKER
The Error
The app was crashing before Uvicorn even started — which explains why Railway's healthcheck saw zero HTTP requests reaching the container. Not a routing issue. Not a port issue. A hard Python crash at import time.
Root Cause
session.pyreferences 4 Settings attributes that didn't exist:settings.DB_POOL_SIZEsettings.DB_POOL_MAX_OVERFLOWsettings.DB_POOL_TIMEOUTsettings.DB_POOL_RECYCLE_TIMEOUTFix
Added all 4 to
Settingsclass inconfig.pywith Railway-safe defaults:Expected result after merge
Summary by CodeRabbit