limit api_entreprise sidekiq job to one thread

This commit is contained in:
simon lehericey 2024-04-02 17:35:21 +02:00
parent 23060da306
commit 71a5876af1
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5

View file

@ -24,6 +24,11 @@ if ENV.has_key?('REDIS_SIDEKIQ_SENTINELS')
if ENV['SKIP_RELIABLE_FETCH'].blank? if ENV['SKIP_RELIABLE_FETCH'].blank?
Sidekiq::ReliableFetch.setup_reliable_fetch!(config) Sidekiq::ReliableFetch.setup_reliable_fetch!(config)
end end
config.capsule('api_entreprise') do |cap|
cap.concurrency = 1
cap.queues = ['api_entreprise']
end
end end
Sidekiq.configure_client do |config| Sidekiq.configure_client do |config|