From 09bd7ec651975df311ae4cdae176cc14d59be5c9 Mon Sep 17 00:00:00 2001 From: moustachu Date: Wed, 28 Aug 2024 09:28:08 +0200 Subject: [PATCH] fix(k8s): add sidekiq timeout and reconnect config for k8s --- config/initializers/sidekiq.rb | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 config/initializers/sidekiq.rb diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb new file mode 100644 index 0000000000..01107f9002 --- /dev/null +++ b/config/initializers/sidekiq.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +Sidekiq.configure_client do |config| + config.redis = { + network_timeout: 10, + pool_timeout: 10, + reconnect_attempts: 0 + } +end