Sha256: 39601bc871dde7d6b5dedb6a77f6c86977f481aca8444db2e615db987b270f9d

Contents?: true

Size: 475 Bytes

Versions: 14

Compression:

Stored size: 475 Bytes

Contents

require 'sidekiq'

Inferno::Application.register_provider(:sidekiq) do
  prepare do
    if Inferno::Application['async_jobs']
      Sidekiq.configure_server do |config|
        config.redis = { url: ENV.fetch('REDIS_URL', 'redis://127.0.0.1:6379/0') }

        config.capsule('validator_sessions') do |cap|
          cap.concurrency = ENV.fetch('VALIDATOR_SESSIONS_CONCURRENCY', '1').to_i
          cap.queues = ['validator_sessions']
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
inferno_core-0.6.1 lib/inferno/config/boot/sidekiq.rb
inferno_core-0.6.0 lib/inferno/config/boot/sidekiq.rb
inferno_core-0.5.4 lib/inferno/config/boot/sidekiq.rb
inferno_core-0.5.3 lib/inferno/config/boot/sidekiq.rb
inferno_core-0.5.2 lib/inferno/config/boot/sidekiq.rb
inferno_core-0.5.1 lib/inferno/config/boot/sidekiq.rb
inferno_core-0.5.0 lib/inferno/config/boot/sidekiq.rb
inferno_core-0.4.44 lib/inferno/config/boot/sidekiq.rb
inferno_core-0.4.43 lib/inferno/config/boot/sidekiq.rb
inferno_core-0.4.42 lib/inferno/config/boot/sidekiq.rb
inferno_core-0.4.41 lib/inferno/config/boot/sidekiq.rb
inferno_core-0.4.40 lib/inferno/config/boot/sidekiq.rb
inferno_core-0.4.39 lib/inferno/config/boot/sidekiq.rb
inferno_core-0.4.38 lib/inferno/config/boot/sidekiq.rb