limit api_entreprise sidekiq job to one thread
This commit is contained in:
parent
23060da306
commit
71a5876af1
1 changed files with 5 additions and 0 deletions
|
@ -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|
|
||||||
|
|
Loading…
Reference in a new issue