Skip to content

Instantly share code, notes, and snippets.

@mlangenberg
Created October 24, 2012 12:15
Show Gist options
  • Save mlangenberg/3945750 to your computer and use it in GitHub Desktop.
Save mlangenberg/3945750 to your computer and use it in GitHub Desktop.
redis_config = { :namespace => 'sidekiq', :url => YAML.load_file("#{Rails.root}/config/redis.yml")[Rails.env] }
Sidekiq.configure_server do |config|
config.redis = redis_config
end
Sidekiq.configure_client do |config|
config.redis = redis_config
end
@mperham
Copy link

mperham commented Apr 25, 2013

Note that both comments are now wrong.

poll interval can be configured directly:

Sidekiq.configure_server do |config|
  config.poll_interval = 1
end

and Passenger's starting_worker_process or Unicorn's after_fork is no longer necessary since Sidekiq 2.9.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment