Created
August 28, 2012 02:13
-
-
Save azuby/3494312 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "resque/tasks" | |
# Load entire rails environment for workers | |
task "resque:setup" => :environment do | |
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection } | |
ENV['QUEUE'] = '*' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment