Skip to content

Commit

Permalink
use JOB_TIMEOUT env var
Browse files Browse the repository at this point in the history
  • Loading branch information
hone committed Feb 7, 2013
1 parent 91bdd05 commit c56ecf4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.ru
Expand Up @@ -7,8 +7,9 @@ $stdout.sync = true
Thread.abort_on_exception = true

NUM_THREADS = ENV['THREADS'].to_i
JOB_TIMEOUT = ENV['TIMEOUT'].to_i

pool = BundlerApi::ConsumerPool.new(NUM_THREADS, 30)
pool = BundlerApi::ConsumerPool.new(NUM_THREADS, JOB_TIMEOUT)

pool.start

Expand Down

0 comments on commit c56ecf4

Please sign in to comment.