mirror of
https://github.com/internetarchive/warcprox.git
synced 2025-01-18 13:22:09 +01:00
retry in case of another type of recoverable error from a rethinkdb operation
This commit is contained in:
parent
b063fdc1fb
commit
7cf33a81ea
@ -69,8 +69,7 @@ class RethinkerWrapper(object):
|
|||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
except r.ReqlOpFailedError as e:
|
except r.ReqlOpFailedError as e:
|
||||||
if e.args and re.match(
|
if e.args and re.match(
|
||||||
'^Cannot perform.*primary replica.*',
|
'^Cannot perform.*replica.*', e.args[0]):
|
||||||
e.args[0]):
|
|
||||||
self.logger.error(
|
self.logger.error(
|
||||||
'will keep trying after potentially recoverable '
|
'will keep trying after potentially recoverable '
|
||||||
'error: %s', e)
|
'error: %s', e)
|
||||||
|
2
setup.py
2
setup.py
@ -3,7 +3,7 @@ import codecs
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='doublethink',
|
name='doublethink',
|
||||||
version='0.2.0.dev82',
|
version='0.2.0.dev83',
|
||||||
packages=['doublethink'],
|
packages=['doublethink'],
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Programming Language :: Python :: 2.7',
|
'Programming Language :: Python :: 2.7',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user