require 'resque'
require 'resque-status'

Resque.inline = ENV['APP_ENV'] == 'test'
Resque.redis = ENV['REDIS_HOST'] || 'localhost'
Resque::Plugins::Status::Hash.expire_in = (30 * 24 * 60 * 60) # In seconds, a too small value remove working or queuing jobs

require 'resque'
require 'resque-status'

Resque.inline = ENV['APP_ENV'] == 'test'
Resque.redis = ENV['REDIS_RESQUE_HOST'] || ENV['REDIS_HOST'] || 'localhost'
Resque::Plugins::Status::Hash.expire_in = (30 * 24 * 60 * 60) # In seconds, a too small value remove working or queuing jobs

Add variable to be able to seperate Redis host for Resque.
Add variable to be able to seperate Redis host for Resque.
