From c8e745a697ed04f0579560890b946a9e387b1398 Mon Sep 17 00:00:00 2001 From: mfo Date: Mon, 14 Oct 2024 12:35:51 +0200 Subject: [PATCH] feat(Sidekiq): reliable-fetch in strict mode --- config/initializers/sidekiq.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb index 7bab2fdca..ba397c673 100644 --- a/config/initializers/sidekiq.rb +++ b/config/initializers/sidekiq.rb @@ -26,13 +26,14 @@ end Sidekiq.configure_server do |config| config.redis = sidekiq_redis - if ENV['PROMETHEUS_EXPORTER_ENABLED'] == 'enabled' Yabeda.configure! Yabeda::Prometheus::Exporter.start_metrics_server! end if ENV['SKIP_RELIABLE_FETCH'].blank? + config[:strict] = true + Sidekiq::ReliableFetch.setup_reliable_fetch!(config) end end