gitlabhq/lib/tasks/resque.rake
2012-12-25 15:53:50 +02:00

9 lines
234 B
Ruby

require 'resque/tasks'
task "resque:setup" => :environment do
Resque.before_fork = Proc.new { ActiveRecord::Base.establish_connection }
end
desc "Alias for resque:work (To run workers on Heroku)"
task "jobs:work" => "resque:work"