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

10 lines
198 B
Ruby
Raw Normal View History

class WorkController < ApplicationController
def index
@count = rand(100)
puts "Adding #{@count} jobs"
2012-02-12 15:22:01 -05:00
@count.times do |x|
HardWorker.perform_async('bubba', x)
end
end
end