summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-11-28 23:38:14 -0800
committerStan Hu <stanhu@gmail.com>2016-12-01 06:24:59 -0800
commitfe0de99c4e893a30029dc03df582550cf32e8b19 (patch)
treebdb0cb8f9d2e7e2d87efad571ffa341714ee6c9d /config
parent8146ad819e626439ac16aa473f10112ddbcf01cd (diff)
downloadgitlab-ce-fe0de99c4e893a30029dc03df582550cf32e8b19.tar.gz
Gracefully recover from Redis connection failures in Sidekiq initializer
* Closes gitlab-org/gitlab-ce#25143 * Closes gitlab-org/omnibus-gitlab#1743
Diffstat (limited to 'config')
-rw-r--r--config/initializers/sidekiq.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb
index b87b31d9697..1d7a3f03ace 100644
--- a/config/initializers/sidekiq.rb
+++ b/config/initializers/sidekiq.rb
@@ -61,5 +61,5 @@ begin
end
end
end
-rescue Redis::BaseError, SocketError
+rescue Redis::BaseError, SocketError, Errno::ENOENT, Errno::EAFNOSUPPORT, Errno::ECONNRESET, Errno::ECONNREFUSED
end