Introduce asyncpg db connector - the latest psycopg (3.2.3) has a bug somewhere which makes db query hangs forever (#1208)

This commit is contained in:
Shuchang Zheng
2024-11-17 14:39:29 -08:00
committed by GitHub
parent 8c653b461a
commit 3b156f619b
2 changed files with 75 additions and 100 deletions

View File

@@ -26,7 +26,7 @@ ddtrace = "^2.3.2"
pydantic = "^2.5.2"
pydantic-settings = "^2.1.0"
fastapi = "^0.115.4"
psycopg = {extras = ["binary", "pool"], version = "^3.1.13"}
psycopg = "3.1.18"
alembic = "^1.12.1"
python-jose = {extras = ["cryptography"], version = "^3.3.0"}
cachetools = "^5.3.2"
@@ -51,6 +51,7 @@ requests-toolbelt = "^1.0.0"
posthog = "^3.7.0"
aiofiles = "^24.1.0"
pyotp = "^2.9.0"
asyncpg = "^0.30.0"
[tool.poetry.group.dev.dependencies]
isort = "^5.13.2"