2012-02-07 20:35:14 -05:00
|
|
|
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)
|
2012-02-07 20:35:14 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|