lib/workless/scalers/heroku.rb in workless_revived-2.1.0.1 vs lib/workless/scalers/heroku.rb in workless_revived-2.1.0.2

- old
+ new

@@ -19,10 +19,10 @@ updates = { "quantity": workers_needed } client.formation.update(ENV['APP_NAME'], 'worker', updates) end def self.workers - client.formation.info(ENV['APP_NAME'], 'worker')['quantity'] + client.formation.info(ENV['APP_NAME'], 'worker')['quantity'].to_i end # Returns the number of workers needed based on the current number of pending jobs and the settings defined by: # # ENV['WORKLESS_WORKERS_RATIO']