Skip to content

Commit

Permalink
timeout is in ms
Browse files Browse the repository at this point in the history
  • Loading branch information
dsschult committed Oct 16, 2024
1 parent d2acc21 commit 29e3d87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iceprod/credentials/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ def __init__(self):
db_url, db_name = config['DB_URL'].rsplit('/', 1)
db = motor.motor_asyncio.AsyncIOMotorClient(
db_url,
timeoutMS=config['DB_TIMEOUT'],
timeoutMS=config['DB_TIMEOUT']*1000,
w=config['DB_WRITE_CONCERN'],
)
logging.info(f'DB name: {db_name}')
Expand Down
2 changes: 1 addition & 1 deletion iceprod/materialization/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def __init__(self):
db_url, db_name = config['DB_URL'].rsplit('/', 1)
db = motor.motor_asyncio.AsyncIOMotorClient(
db_url,
timeoutMS=config['DB_TIMEOUT'],
timeoutMS=config['DB_TIMEOUT']*1000,
w=config['DB_WRITE_CONCERN'],
)
logging.info(f'DB name: {db_name}')
Expand Down
2 changes: 1 addition & 1 deletion iceprod/rest/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def __init__(self, s3_override=None):
db_url, db_name = config['DB_URL'].rsplit('/', 1)
self.db = motor.motor_asyncio.AsyncIOMotorClient(
db_url,
timeoutMS=config['DB_TIMEOUT'],
timeoutMS=config['DB_TIMEOUT']*1000,
w=config['DB_WRITE_CONCERN'],
)
logging.info(f'DB name: {db_name}')
Expand Down

0 comments on commit 29e3d87

Please sign in to comment.