Skip to content

Commit

Permalink
pool_pre_ping add (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriev-semyon authored Nov 22, 2022
1 parent f3299cd commit 88ca9f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions marketing_api/routes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ async def http_error_handler(req, exc):
DBSessionMiddleware,
db_url=settings.DB_DSN,
session_args={"autocommit": True},
engine_args={"pool_pre_ping": True}
)

app.add_middleware(
Expand Down
1 change: 1 addition & 0 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ requests
pytest
pytest-cov
black
httpx

0 comments on commit 88ca9f8

Please sign in to comment.