From c9f3e452c8ca5e2a1b11729ad621c033e6f3e9bf Mon Sep 17 00:00:00 2001 From: Thomas Riboulet Date: Sun, 8 Mar 2015 21:29:05 +0000 Subject: [PATCH] sleep more --- hello.rb | 2 +- workers/test_job.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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