sleep more

master
Thomas Riboulet 9 years ago
parent 107fc6b68c
commit c9f3e452c8

@ -22,7 +22,7 @@ end
class SimpleApp < Sinatra::Base
get '/' do
10.times { TestJob.perform_async }
20.times { TestJob.perform_async }
haml "%h3 Hello THE BEANSTALK AWESOME World! #{MyRedis.value}"
end

@ -2,7 +2,7 @@ class TestJob
include Sidekiq::Worker
def perform
sleep 2
sleep 5
MyRedis.redis.incr('blob1')
end
end

Loading…
Cancel
Save