Skip to content

Commit

Permalink
allow env vars to override keepalive times
Browse files Browse the repository at this point in the history
  • Loading branch information
wuputah committed Oct 9, 2011
1 parent 0378af1 commit cd627db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/resque/worker.rb
Expand Up @@ -10,8 +10,8 @@ class Worker
include Resque::Helpers
extend Resque::Helpers

KEEPALIVE_INTERVAL = 25
KEEPALIVE_EXPIRE = 60
KEEPALIVE_INTERVAL = (ENV['RESQUE_KEEPALIVE_INTERVAL'] || 25).to_i
KEEPALIVE_EXPIRE = (ENV['RESQUE_KEEPALIVE_EXPIRE'] || 60).to_i

# Whether the worker should log basic info to STDOUT
attr_accessor :verbose
Expand Down

0 comments on commit cd627db

Please sign in to comment.