We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bc7371f + 69a8495 commit 8006ffdCopy full SHA for 8006ffd
lib/resque/tasks.rb
@@ -5,7 +5,7 @@
5
task :setup
6
7
desc "Start a Resque worker"
8
- task :work => [ :preload, :setup ] do
+ task :work => :setup do
9
require 'resque'
10
11
queues = (ENV['QUEUES'] || ENV['QUEUE']).to_s.split(',')
@@ -47,16 +47,4 @@
47
48
threads.each { |thread| thread.join }
49
end
50
-
51
- # Preload app files if this is Rails
52
- task :preload => :setup do
53
- if defined?(Rails) && Rails.respond_to?(:application)
54
- # Rails 3
55
- Rails.application.eager_load!
56
- elsif defined?(Rails::Initializer)
57
- # Rails 2.3
58
- $rails_rake_task = false
59
- Rails::Initializer.run :load_application_classes
60
- end
61
62
0 commit comments