Permalink
Browse files

add resque timeout

  • Loading branch information...
maxwell committed Sep 8, 2011
1 parent 0c00947 commit cd7640a9710425643cb8a55a1547cc464a0e3cf2
Showing with 5 additions and 0 deletions.
  1. +1 −0 Gemfile
  2. +3 −0 Gemfile.lock
  3. +1 −0 config/initializers/resque.rb
View
@@ -82,6 +82,7 @@ gem 'cloudfiles', '1.4.10', :require => false
#Queue
gem 'resque', '1.10.0'
gem 'resque-ensure-connected'
+gem 'resque-timeout', '1.0.0'
gem 'SystemTimer', '1.2.1', :platforms => :ruby_18
group :development do
View
@@ -374,6 +374,8 @@ GEM
resque-ensure-connected (0.1.0)
activerecord (>= 2.3.5)
resque (~> 1.10.0)
+ resque-timeout (1.0.0)
+ resque (~> 1.0)
rest-client (1.6.1)
mime-types (>= 1.16)
rspec (2.6.0)
@@ -521,6 +523,7 @@ DEPENDENCIES
redcarpet!
resque (= 1.10.0)
resque-ensure-connected
+ resque-timeout (= 1.0.0)
rest-client (= 1.6.1)
roxml!
rspec (>= 2.0.0)
@@ -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)

0 comments on commit cd7640a

Please sign in to comment.