Skip to content

Commit

Permalink
increase DB timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmedGIT committed Feb 17, 2024
1 parent fb38c56 commit 588b017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ocrd_network/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def verify_mongodb_available(mongo_url: str) -> None:
"""

try:
client = MongoClient(mongo_url, serverSelectionTimeoutMS=5000.0)
client = MongoClient(mongo_url, serverSelectionTimeoutMS=60000.0)
client.admin.command("ismaster")
except Exception:
raise RuntimeError(f'Cannot connect to MongoDB: {re_sub(r":[^@]+@", ":****@", mongo_url)}')
Expand Down

0 comments on commit 588b017

Please sign in to comment.