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