mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-03 15:10:51 -05:00
Upper bound the backoff.
This commit is contained in:
parent
10766f1e93
commit
64345b7559
@ -214,7 +214,9 @@ class _Recoverer(object):
|
|||||||
self.backoff_counter = 1
|
self.backoff_counter = 1
|
||||||
yield self.retry()
|
yield self.retry()
|
||||||
else:
|
else:
|
||||||
self.backoff_counter += 1
|
# cap the backoff to be around 18h => (2^16) = 65536 secs
|
||||||
|
if self.backoff_counter < 16:
|
||||||
|
self.backoff_counter += 1
|
||||||
self.recover()
|
self.recover()
|
||||||
else:
|
else:
|
||||||
self._set_service_recovered()
|
self._set_service_recovered()
|
||||||
|
Loading…
Reference in New Issue
Block a user