feat(Sidekiq): reliable-fetch in strict mode

This commit is contained in:
mfo 2024-10-14 12:35:51 +02:00
parent 8266f7ff6c
commit c8e745a697
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC

View file

@ -26,13 +26,14 @@ end
Sidekiq.configure_server do |config| Sidekiq.configure_server do |config|
config.redis = sidekiq_redis config.redis = sidekiq_redis
if ENV['PROMETHEUS_EXPORTER_ENABLED'] == 'enabled' if ENV['PROMETHEUS_EXPORTER_ENABLED'] == 'enabled'
Yabeda.configure! Yabeda.configure!
Yabeda::Prometheus::Exporter.start_metrics_server! Yabeda::Prometheus::Exporter.start_metrics_server!
end end
if ENV['SKIP_RELIABLE_FETCH'].blank? if ENV['SKIP_RELIABLE_FETCH'].blank?
config[:strict] = true
Sidekiq::ReliableFetch.setup_reliable_fetch!(config) Sidekiq::ReliableFetch.setup_reliable_fetch!(config)
end end
end end