mirror of
https://github.com/thecyberlearn/quantumtaskai-caprover.git
synced 2026-08-18 07:52:55 +00:00
Fix invalid PostgreSQL MAX_CONNS configuration option
- Remove MAX_CONNS from database OPTIONS as it's not a valid psycopg2 parameter - Keep isolation_level setting for PostgreSQL optimization - This resolves ProgrammingError: invalid connection option "MAX_CONNS" 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
133b3f1d50
commit
28d41d5a44
@ -199,10 +199,7 @@ if database_url:
|
||||
# Add PostgreSQL optimization settings
|
||||
if psycopg2:
|
||||
db_config['OPTIONS'] = {
|
||||
'MAX_CONNS': 20,
|
||||
'OPTIONS': {
|
||||
'isolation_level': psycopg2.extensions.ISOLATION_LEVEL_READ_COMMITTED,
|
||||
}
|
||||
'isolation_level': psycopg2.extensions.ISOLATION_LEVEL_READ_COMMITTED,
|
||||
}
|
||||
|
||||
# Connection pooling and performance settings
|
||||
|
||||
Loading…
Reference in New Issue
Block a user