Set timeout for redis commands

fixes #779
This commit is contained in:
Matt Jibson 2015-11-06 18:48:47 -05:00
parent d8c0d243f4
commit afa119d82e

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)