lib/workless/scalers/heroku_cedar.rb in rcarvalho-workless-1.0.2.14 vs lib/workless/scalers/heroku_cedar.rb in rcarvalho-workless-1.0.2.15

- old
+ new

@@ -29,8 +29,12 @@ end rescue end end + def self.workers + client.ps(ENV['APP_NAME']).count { |p| p["process"] =~ /worker\.\d?/ } + end + end end end