Using PYPE_FTRACK_SOCKET_TIMEOUT variable

and default 45.
This commit is contained in:
Toke Stuart Jepsen 2020-07-17 17:52:16 +01:00
parent 87715afcb8
commit 62e296de6d

View file

@ -11,7 +11,7 @@ from pype.api import Logger
class SocketThread(threading.Thread):
"""Thread that checks suprocess of storer of processor of events"""
MAX_TIMEOUT = 120
MAX_TIMEOUT = int(os.environ.get("PYPE_FTRACK_SOCKET_TIMEOUT", 45))
def __init__(self, name, port, filepath, additional_args=[]):
super(SocketThread, self).__init__()