Merge pull request #818 from mjibson/redis-socket-timeout
Set timeout for redis commands
This commit is contained in:
commit
e5282a216f
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ class RedisBuildLogs(object):
|
|||
|
||||
def __init__(self, redis_config):
|
||||
args = dict(redis_config)
|
||||
args.update({'socket_connect_timeout': 5})
|
||||
args.update({'socket_connect_timeout': 5, 'socket_timeout': 5})
|
||||
|
||||
self._redis_config = redis_config
|
||||
self._redis = redis.StrictRedis(**args)
|
||||
|
|
Reference in a new issue