Sha256: 99c0719b65af898c54f2e9dbcc464be17325c29a4c0f38ef6b9cffa40c067b7f

Contents?: true

Size: 605 Bytes

Versions: 2

Compression:

Stored size: 605 Bytes

Contents

class TestController < ApplicationController
  layout false

  def home
    100.times do |n|
      Resque.enqueue SlowHttpRequest, "http://httplogger.herokuapp.com/bvlog/get?n=#{n}", :get
      #Resque.enqueue SlowHttpRequest, "http://httplogger.herokuapp.com/bvlog/get?n=#{n}", :get, {error: 404}
    end
    120.times do |n|
      Resque.enqueue SlowHttpRequest, "http://httplogger.herokuapp.com/bvlog/post?n=#{n}", :post, {n10: n*10}
      #Resque.enqueue SlowHttpRequest, "http://httplogger.herokuapp.com/bvlog/post?n=#{n}", :post, {error: 500}
    end
    redirect_to '/resque/kalashnikov'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
resque-kalashnikov-1.1.1 demo/app/controllers/test_controller.rb
resque-kalashnikov-1.1.0 demo/app/controllers/test_controller.rb