lib/workless/scalers/heroku_cedar.rb in rcarvalho-workless-1.0.2.16 vs lib/workless/scalers/heroku_cedar.rb in rcarvalho-workless-1.0.2.17

- old
+ new

@@ -7,11 +7,11 @@ class HerokuCedar < Base extend Delayed::Workless::Scaler::HerokuClient def self.up - nw = self.calculate_num_workers + nw = self.calculate_num_workers(true) if nw if self.num_workers_cache != nw self.num_workers_cache = nw client.ps_scale(ENV['APP_NAME'], :type => 'worker', :qty => nw) end @@ -31,10 +31,10 @@ end def self.workers client.ps(ENV['APP_NAME']).count { |p| p["process"] =~ /worker\.\d?/ } end - + end end end end