Merge pull request #818 from mjibson/redis-socket-timeout

Set timeout for redis commands
This commit is contained in:
Matt Jibson 2015-11-09 14:39:00 -05:00
commit e5282a216f

View file

@ -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)