Проверять соединение PostgreSQL перед рабочей транзакцией

This commit is contained in:
2026-11-27 12:32:27 +03:00
parent 0076659224
commit af4410497c
4 changed files with 10322 additions and 0 deletions
+4
View File
@@ -43,6 +43,10 @@ class Database:
},
min_size=1,
max_size=size,
# TLS gateways retire established sessions. Validate an idle
# connection before handing it to a business transaction; a broken
# checkout must not consume a lease or retry an uncertain COMMIT.
check=ConnectionPool.check_connection,
timeout=1,
max_lifetime=30,
max_idle=15,