1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
mperham--sidekiq/myapp/app/controllers/work_controller.rb
2012-02-12 12:22:01 -08:00

9 lines
198 B
Ruby

class WorkController < ApplicationController
def index
@count = rand(100)
puts "Adding #{@count} jobs"
@count.times do |x|
HardWorker.perform_async('bubba', x)
end
end
end