Sha256: dafde7710a22fa0323e7cfe78e21a9a4d75d711e987ca0e18d538bb5fea6faaa

Contents?: true

Size: 459 Bytes

Versions: 36

Compression:

Stored size: 459 Bytes

Contents

db_config = Rails.configuration.database_configuration[Rails.env]
redis_url = ENV['REDIS_URL'] || 'redis://localhost:6379/0'

Sidekiq.configure_server do |config|
  config.redis = { url: redis_url, namespace: db_config['database'] }

  begin
    require 'sidekiq/scheduler'
  rescue LoadError
    puts 'sidekiq-scheduler is not loaded.'
  end
end

Sidekiq.configure_client do |config|
  config.redis = { url: redis_url, namespace: db_config['database'] }
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
daddy-0.7.1 lib/daddy/sidekiq.rb
daddy-0.7.0 lib/daddy/sidekiq.rb
daddy-0.6.6 lib/daddy/sidekiq.rb
daddy-0.6.5 lib/daddy/sidekiq.rb
daddy-0.6.4 lib/daddy/sidekiq.rb
daddy-0.6.3 lib/daddy/sidekiq.rb
daddy-0.6.2 lib/daddy/sidekiq.rb
daddy-0.6.1 lib/daddy/sidekiq.rb
daddy-0.6.0 lib/daddy/sidekiq.rb
daddy-0.5.34 lib/daddy/sidekiq.rb
daddy-0.5.33 lib/daddy/sidekiq.rb
daddy-0.5.32 lib/daddy/sidekiq.rb
daddy-0.5.31 lib/daddy/sidekiq.rb
daddy-0.5.30 lib/daddy/sidekiq.rb
daddy-0.5.29 lib/daddy/sidekiq.rb
daddy-0.5.28 lib/daddy/sidekiq.rb