1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/myapp/config/initializers/sidekiq.rb
2014-08-02 00:36:37 +00:00

19 lines
435 B
Ruby

Sidekiq.configure_client do |config|
config.redis = { :size => 2, :namespace => 'foo' }
end
Sidekiq.configure_server do |config|
config.redis = { :size => 25, :namespace => 'foo' }
config.on(:startup) { puts "Hello!" }
config.on(:quiet) { puts "Quiet down!" }
config.on(:shutdown) { puts "Goodbye!" }
end
require 'sidekiq/web'
Sidekiq::Web.app_url = '/'
class EmptyWorker
include Sidekiq::Worker
def perform
end
end