Merge branch 'master' of github.com:web2py/web2py

This commit is contained in:
mdipierro committed 2019-09-30 20:47:15 -07:00
commit 1ce316609a
1 file changed
+2 -2
+2 -2
View File
@@ -209,11 +209,11 @@ class RedisClient(object):
def retry_call(self, key, f, time_expire, with_lock): def retry_call(self, key, f, time_expire, with_lock):
self.RETRIES += 1 self.RETRIES += 1
if self.RETRIES <= self.MAX_RETRIES: if self.RETRIES <= self.MAX_RETRIES:
logger.error("sleeping %s seconds before reconnecting" % (2 * self.RETRIES))
time.sleep(2 * self.RETRIES)
if self.fail_gracefully: if self.fail_gracefully:
self.RETRIES = 0 self.RETRIES = 0
return f() return f()
logger.error("sleeping %s seconds before reconnecting" % (2 * self.RETRIES))
time.sleep(2 * self.RETRIES)
return self.__call__(key, f, time_expire, with_lock) return self.__call__(key, f, time_expire, with_lock)
else: else:
self.RETRIES = 0 self.RETRIES = 0