Merge pull request #10929 from mfo/US/reliable-fetch-strict

ETQ tech, fait tourner sidekiq en mode "strict" avec reliable fetch
This commit is contained in:
Colin Darie 2024-10-14 19:15:40 +00:00 committed by GitHub
commit 95c434d91a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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