Skip to content

Commit

Permalink
Back to lower timeouts (now passes on Travis)
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandrodob committed Jun 8, 2015
1 parent 986c508 commit 0b30e3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pybossa/sentinel/__init__.py
Expand Up @@ -12,9 +12,9 @@ def __init__(self, app=None):

def init_app(self, app):
self.connection = sentinel.Sentinel(app.config['REDIS_SENTINEL'],
socket_timeout=2.0,
socket_timeout=1.0,
retry_on_timeout=True,
socket_connect_timeout=2.0)
socket_connect_timeout=1.0)
redis_db = app.config.get('REDIS_DB') or 0
self.master = self.connection.master_for('mymaster', db=redis_db)
self.slave = self.connection.slave_for('mymaster', db=redis_db)

0 comments on commit 0b30e3d

Please sign in to comment.