Merge pull request #325 from tokejepsen/2.x/bugfix/ftrack_timeout

Ftrack timeout needs to look at AVALON_TIMEOUT
This commit is contained in:
Milan Kolar 2020-07-08 09:05:41 +02:00 committed by GitHub
commit 62cb5600ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,7 @@ import time
import logging
import functools
import atexit
import os
# Third-party dependencies
import pymongo
@ -62,7 +63,7 @@ def check_active_table(func):
class DbConnector:
log = logging.getLogger(__name__)
timeout = 1000
timeout = int(os.environ["AVALON_TIMEOUT"])
def __init__(
self, uri, port=None, database_name=None, table_name=None