fix: enable pool_pre_ping for async engine to improve connection handling

This commit is contained in:
2025-08-19 10:00:40 +03:00
parent 4e73900969
commit b44e70faf7

View File

@@ -24,7 +24,8 @@ database_url = (
engine = create_async_engine(
database_url,
pool_timeout=2000
pool_timeout=2000,
pool_pre_ping=True,
)
session_factory = async_sessionmaker(
engine,