mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
11 lines
211 B
Ruby
11 lines
211 B
Ruby
require 'sidekiq'
|
|
|
|
Sidekiq.configure_client do |config|
|
|
config.redis = { :namespace => 'foo' }
|
|
end
|
|
|
|
jobs = []
|
|
20_000.times do
|
|
jobs << []
|
|
end
|
|
Sidekiq::Client.push_bulk 'class' => 'LazyWorker', 'args' => jobs
|