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.9.9 lib/daddy/sidekiq.rb
daddy-0.9.8 lib/daddy/sidekiq.rb
daddy-0.9.7 lib/daddy/sidekiq.rb
daddy-0.9.6 lib/daddy/sidekiq.rb
daddy-0.9.5 lib/daddy/sidekiq.rb
daddy-0.9.4 lib/daddy/sidekiq.rb
daddy-0.9.3 lib/daddy/sidekiq.rb
daddy-0.9.2 lib/daddy/sidekiq.rb
daddy-0.9.1 lib/daddy/sidekiq.rb
daddy-0.9.0 lib/daddy/sidekiq.rb
daddy-0.8.1 lib/daddy/sidekiq.rb
daddy-0.8.0 lib/daddy/sidekiq.rb
daddy-0.7.9 lib/daddy/sidekiq.rb
daddy-0.7.8 lib/daddy/sidekiq.rb
daddy-0.7.7 lib/daddy/sidekiq.rb
daddy-0.7.6 lib/daddy/sidekiq.rb
daddy-0.7.5 lib/daddy/sidekiq.rb
daddy-0.7.4 lib/daddy/sidekiq.rb
daddy-0.7.3 lib/daddy/sidekiq.rb
daddy-0.7.2 lib/daddy/sidekiq.rb