mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
19 lines
435 B
Ruby
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
|