Sha256: 829885f0e6235b8999ee9dcb07d9a44ebf47f615bf22993fb49ab1a544a957ed
Contents?: true
Size: 755 Bytes
Versions: 1
Compression:
Stored size: 755 Bytes
Contents
require 'heroku' module Delayed module Workless module Scaler class Heroku < Base extend Delayed::Workless::Scaler::HerokuClient def self.up nw = self.calculate_num_workers if nw if self.num_workers_cache != nw self.num_workers_cache = nw client.set_workers(ENV['APP_NAME'], nw) end end rescue end def self.down nw = self.calculate_num_workers if nw if self.num_workers_cache != nw self.num_workers_cache = nw client.set_workers(ENV['APP_NAME'], nw) end end rescue end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rcarvalho-workless-1.0.2.14 | lib/workless/scalers/heroku.rb |