diff --git a/hello.rb b/hello.rb index 67be592..a627356 100644 --- a/hello.rb +++ b/hello.rb @@ -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 diff --git a/workers/test_job.rb b/workers/test_job.rb index a6b781c..18b42c1 100644 --- a/workers/test_job.rb +++ b/workers/test_job.rb @@ -2,7 +2,7 @@ class TestJob include Sidekiq::Worker def perform - sleep 2 + sleep 5 MyRedis.redis.incr('blob1') end end