diff --git a/lib/sneakers/tasks.rb b/lib/sneakers/tasks.rb index a6124bb2..b9114a1c 100644 --- a/lib/sneakers/tasks.rb +++ b/lib/sneakers/tasks.rb @@ -6,7 +6,7 @@ namespace :sneakers do desc "Start work (set $WORKERS=Klass1,Klass2)" task :run => :environment do - + ::Rails.application.eager_load! workers, missing_workers = Sneakers::Utils.parse_workers(ENV['WORKERS']) unless missing_workers.empty?