gitlabhq/lib/tasks/resque.rake
2012-12-11 18:46:58 +02:00

11 lines
221 B
Ruby

require 'resque/tasks'
task "resque:setup" => :environment do
Resque.after_fork do
Resque.redis.client.reconnect
end
end
desc "Alias for resque:work (To run workers on Heroku)"
task "jobs:work" => "resque:work"