2012-06-16 19:27:46 +01:00
|
|
|
require 'resque/server'
|
|
|
|
require 'resque/status_server'
|
2014-02-10 19:36:10 +00:00
|
|
|
require 'resque_scheduler'
|
|
|
|
require 'resque_scheduler/server'
|
2012-06-16 19:27:46 +01:00
|
|
|
|
|
|
|
::ResqueServer = ::Resque::Server # need for CanCan
|
|
|
|
|
2012-06-18 15:16:53 +01:00
|
|
|
Resque::Mailer.default_queue_name = :notification
|
2012-06-16 19:27:46 +01:00
|
|
|
Resque::Mailer.excluded_environments = [:test]
|
|
|
|
|
|
|
|
unless Rails.env.test?
|
|
|
|
PerformLater.config.enabled = true # this will default to false if unset
|
|
|
|
end
|
|
|
|
|
2014-02-25 21:51:11 +00:00
|
|
|
Resque::Plugins::Status::Hash.expire_in = (24 * 60 * 60) # 24hrs in seconds
|