Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bump version

  • Loading branch information...
commit 23f02ac6d4310717bc1afc6584ed7591a4ae7765 1 parent b7aeae1
@dkador authored
View
2  lib/resque/plugins/heroku_autoscaler/version.rb
@@ -1,7 +1,7 @@
module Resque
module Plugins
module HerokuAutoscaler
- VERSION = "0.2.11"
+ VERSION = "0.2.12"
end
end
end
View
7 lib/resque/plugins/resque_heroku_autoscaler.rb
@@ -40,7 +40,12 @@ def set_workers(number_of_workers)
def current_workers
ps_result = heroku_client.ps(Resque::Plugins::HerokuAutoscaler::Config.heroku_app)
puts "ps_result #{ps_result}"
- heroku_client.info(Resque::Plugins::HerokuAutoscaler::Config.heroku_app)[:workers].to_i
+ ps_result.each do |ps_info|
+ if ps_info["process"] == "worker.1"
+ return 1
+ end
+ end
+ return 0
end
def heroku_client
Please sign in to comment.
Something went wrong with that request. Please try again.