Load initialization code for resque

pull/11213/head
Javier Torres 8 years ago
parent e01f10d165
commit 158bdd1ce4

@ -9,6 +9,7 @@ require 'resque/tasks'
# Do not load take tasks when running resque: https://github.com/CartoDB/cartodb/issues/11046
if Rake.application.top_level_tasks.reject { |t| ['environment', 'resque:work'].include?(t) }.empty?
CartoDB::Application.paths['lib/tasks'] = []
load 'lib/tasks/resque.rake'
end
CartoDB::Application.load_tasks

Loading…
Cancel
Save