Хранить отзывы сессий в PostgreSQL, сохранять U+0000, ограничить ожидание БД

This commit is contained in:
Pavel Grigorev
2026-11-06 17:11:03 +03:00
parent 0c6b95cc53
commit f69ad8c27c
31 changed files with 974 additions and 725 deletions
+2 -1
View File
@@ -29,7 +29,8 @@ class Settings:
self.db_pool_min = positive_int('DB_POOL_MIN', '1')
self.db_pool_max = positive_int('DB_POOL_MAX', '10')
self.db_pool_timeout = float(os.environ.get('DB_POOL_TIMEOUT_SECONDS', '2'))
self.db_statement_timeout_ms = positive_int('DB_STATEMENT_TIMEOUT_MS', '5000')
self.db_statement_timeout_ms = positive_int('DB_STATEMENT_TIMEOUT_MS', '3000')
self.db_request_timeout = float(os.environ.get('DB_REQUEST_TIMEOUT_SECONDS', '4'))
if not self.database_url:
raise SystemExit('DATABASE_URL or DATABASE_URL_FILE is required')