lib/workless/scalers/heroku_cedar.rb in rcarvalho-workless-1.0.2.10 vs lib/workless/scalers/heroku_cedar.rb in rcarvalho-workless-1.0.2.11

- old
+ new

@@ -11,10 +11,10 @@ def self.up nw = self.calculate_num_workers if nw if self.num_workers_cache != nw self.num_workers_cache = nw - client.ps_scale(ENV['APP_NAME'], :type => 'worker', :qty => @@current_num_workers) + client.ps_scale(ENV['APP_NAME'], :type => 'worker', :qty => nw) end end rescue end