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
196 B
Ruby
Raw Normal View History

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