diff options
author | Maxwell Salzberg <maxwell@joindiaspora.com> | 2011-09-08 21:46:36 +0400 |
---|---|---|
committer | Maxwell Salzberg <maxwell@joindiaspora.com> | 2011-09-08 21:46:36 +0400 |
commit | cd7640a9710425643cb8a55a1547cc464a0e3cf2 (patch) | |
tree | cb49de9620e408b02e331eb2152fa924d27a8567 /config | |
parent | 0c00947fec9894878ed49f3128bd3dc6efdfee74 (diff) |
add resque timeout
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/resque.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/resque.rb b/config/initializers/resque.rb index eddb928dc..f68fe73ec 100644 --- a/config/initializers/resque.rb +++ b/config/initializers/resque.rb @@ -1,5 +1,6 @@ require 'resque' +Resque::Plugins::Timeout.timeout = 120 if !ENV['SINGLE_PROCESS'] && AppConfig[:redis_url] Resque.redis = Redis.new(:host => AppConfig[:redis_url], :port => 6379) |