Skip to content

Instantly share code, notes, and snippets.

@laffy
Created May 29, 2012 10:14
Show Gist options
  • Save laffy/2823899 to your computer and use it in GitHub Desktop.
Save laffy/2823899 to your computer and use it in GitHub Desktop.
require "resque/tasks"
require "resque/failure/multiple_failure"
require "resque/failure_server"
task "resque:setup" => :environment do
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
Resque::Failure.backend = Resque::Failure::MultipleFailure
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment