Catch exceptions when ELB times out a connection to etcd.
This commit is contained in:
parent
725808a4f8
commit
86852da4ba
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ import json
|
|||
from datetime import datetime, timedelta
|
||||
from trollius import From, coroutine, Return, async
|
||||
from concurrent.futures import ThreadPoolExecutor
|
||||
from urllib3.exceptions import ReadTimeoutError
|
||||
from urllib3.exceptions import ReadTimeoutError, ProtocolError
|
||||
|
||||
from buildman.manager.basemanager import BaseManager
|
||||
from buildman.manager.executor import PopenExecutor, EC2Executor
|
||||
|
@ -75,7 +75,7 @@ class EphemeralBuilderManager(BaseManager):
|
|||
|
||||
try:
|
||||
etcd_result = changed_key_future.result()
|
||||
except ReadTimeoutError:
|
||||
except (ReadTimeoutError, ProtocolError):
|
||||
return
|
||||
|
||||
change_callback(etcd_result)
|
||||
|
|
Reference in a new issue