Skip to content

Commit

Permalink
180 resqueue timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
brianlball authored Aug 14, 2024
1 parent 8eaf62d commit 757d232
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/config/initializers/redis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
require 'resque'
uri = URI.parse(ENV['REDIS_URL'])
Resque.redis = Redis.new(host: uri.host, port: uri.port, password: uri.password)
Resque.prune_interval = 121 # Set the interval to 121 seconds
Resque.prune_interval = 180 # Set the interval to 180 seconds
elsif ['development', 'test'].include? Rails.env
require 'resque'
Resque.redis = 'localhost:6379'
Resque.prune_interval = 121 # Set the interval to 121 seconds
Resque.prune_interval = 180 # Set the interval to 180 seconds
else
require 'resque'
uri = ENV.has_key?('REDIS_URL') ? ENV['REDIS_URL'] : 'queue:6379'
uri = URI.parse(uri)
#Resque.redis = 'queue:6379'
Resque.redis = Redis.new(host: uri.host, port: uri.port, password: uri.password)
Resque.prune_interval = 121 # Set the interval to 121 seconds
Resque.prune_interval = 180 # Set the interval to 180 seconds
end

0 comments on commit 757d232

Please sign in to comment.