sleep more

master
Thomas Riboulet 9 years ago
parent 107fc6b68c
commit c9f3e452c8

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

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

Loading…
Cancel
Save