From d4f4830ff23c45b26fa55928588cb917a0e8a9df Mon Sep 17 00:00:00 2001 From: TPV Date: Mon, 27 Jul 2026 08:48:04 -0700 Subject: [PATCH] added motor/pinned the curl version --- pyproject.toml | 2 +- src/monitor_utils/database.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e35a9af..ab305f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,7 +10,7 @@ dependencies = [ "aiohttp>=3.14.1", "aioproxies @ git+https://git.rethinkstudios.io/rethink-public/aioproxies.git", "aioweb-tls[curl] @ git+https://git.rethinkstudios.io/rethink-public/aioweb_tls.git", - "curl-cffi>=0.15.0", + "curl-cffi==0.15.0", "fake-useragent>=2.2.0", "motor>=3.7.1", "pydantic>=2.13.4", diff --git a/src/monitor_utils/database.py b/src/monitor_utils/database.py index 9c95c4b..bf85560 100644 --- a/src/monitor_utils/database.py +++ b/src/monitor_utils/database.py @@ -67,8 +67,10 @@ def get_mongo_client() -> AsyncIOMotorClient: return AsyncIOMotorClient( MONGO_URL, - maxPoolSize=200, minPoolSize=10, + connectTimeoutMS=20_000, + socketTimeoutMS=60_000, + serverSelectionTimeoutMS=30_000, retryWrites=True, retryReads=True, tz_aware=True,