Commit 508ae63e authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Disable Redis client reconnect attempts

parent ae21f6c5
......@@ -15,7 +15,12 @@ module GitLab
@metrics = metrics
Sidekiq.configure_client do |config|
config.redis = { url: opts[:redis_url], namespace: "resque:gitlab", connect_timeout: 1 }
config.redis = {
url: opts[:redis_url],
namespace: "resque:gitlab",
connect_timeout: 1,
reconnect_attempts: 0
}
end
ensure_queue_job_stats_script_loaded
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment