diff options
author | Stan Hu <stanhu@gmail.com> | 2016-11-28 23:38:14 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-12-01 06:24:59 -0800 |
commit | fe0de99c4e893a30029dc03df582550cf32e8b19 (patch) | |
tree | bdb0cb8f9d2e7e2d87efad571ffa341714ee6c9d /config | |
parent | 8146ad819e626439ac16aa473f10112ddbcf01cd (diff) | |
download | gitlab-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.rb | 2 |
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 |