Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
make advertise to retry on all exceptions for now.
Browse files Browse the repository at this point in the history
Keep it alive.
  • Loading branch information
jc-fireball committed Jul 13, 2015
1 parent eaa6706 commit 2d1a2e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tchannel/tornado/hyperbahn.py
Expand Up @@ -29,8 +29,6 @@
import tornado.ioloop

from ..errors import AdvertiseError
from ..errors import ProtocolError
from ..errors import TimeoutError
from .response import StatusCode

DEFAULT_EXPO_BASE = 1.4 # try this first
Expand Down Expand Up @@ -68,7 +66,7 @@ def _advertise(tchannel, service):
headers={'as': 'json'},
attempt_times=1,
)
except (ProtocolError, TimeoutError) as e:
except Exception as e: # Big scope to keep it alive.
log.error('Failed to register with Hyperbahn: %s', e)
else:
if response.code != StatusCode.ok:
Expand Down

0 comments on commit 2d1a2e0

Please sign in to comment.