From 2d34b892036413ea7ca3d0c3a82449fb122625d9 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 5 Oct 2017 16:29:09 -0400 Subject: [PATCH] Decrease redis timeouts to within the WAMP message window This ensures that if the builder sends a heartbeat, but redis is down, we don't time out the build while waiting to connect or receive. Since Redis data is ephemeral anyway, this should give us more stability in builds if/when redis is down --- data/buildlogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/buildlogs.py b/data/buildlogs.py index bf38f921a..6fdb25d09 100644 --- a/data/buildlogs.py +++ b/data/buildlogs.py @@ -20,7 +20,7 @@ class RedisBuildLogs(object): def __init__(self, redis_config): args = dict(redis_config) - args.update({'socket_connect_timeout': 5, 'socket_timeout': 5}) + args.update({'socket_connect_timeout': 1, 'socket_timeout': 2}) self._redis_config = redis_config self._redis = redis.StrictRedis(**args)