diff options
author | ctolentino8 <ctolentino8@bloomberg.net> | 2020-04-09 15:25:40 +0100 |
---|---|---|
committer | ctolentino8 <ctolentino8@bloomberg.net> | 2020-05-05 14:38:02 +0100 |
commit | a6eb85d1d47b9de930b3f3069bad702139b6a3f9 (patch) | |
tree | 8d26523404d262cc94aa1cd5b829b6f6d1b49804 | |
parent | 045a7fd9b6d426865764bb434abed01176a9bfc6 (diff) | |
download | buildstream-a6eb85d1d47b9de930b3f3069bad702139b6a3f9.tar.gz |
casdprocessmanager.py: Relax timeout for establishing buildbox-casd connection
-rw-r--r-- | src/buildstream/_cas/casdprocessmanager.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/buildstream/_cas/casdprocessmanager.py b/src/buildstream/_cas/casdprocessmanager.py index 4c9d80209..89488696b 100644 --- a/src/buildstream/_cas/casdprocessmanager.py +++ b/src/buildstream/_cas/casdprocessmanager.py @@ -37,6 +37,7 @@ from .._exceptions import CASCacheError from .._message import Message, MessageType _CASD_MAX_LOGFILES = 10 +_CASD_TIMEOUT = 300 # in seconds # CASDProcessManager @@ -240,8 +241,8 @@ class CASDChannel: while not os.path.exists(self._socket_path): # casd is not ready yet, try again after a 10ms delay, - # but don't wait for more than 15s - if time.time() > self._start_time + 15: + # but don't wait for more than specified timeout period + if time.time() > self._start_time + _CASD_TIMEOUT: raise CASCacheError("Timed out waiting for buildbox-casd to become ready") time.sleep(0.01) |