rcarvalho-workless 1.0.2.2 → 1.0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/workless/scalers/heroku.rb +2 -1
  2. metadata +2 -2
@@ -14,7 +14,8 @@ module Delayed
14
14
  end
15
15
 
16
16
  def self.down
17
- client.set_workers(ENV['APP_NAME'], 0) unless self.workers == 0 or self.jobs.count > 0
17
+ nw = self.calculate_num_workers
18
+ client.set_workers(ENV['APP_NAME'], nw) unless self.workers == 0 or self.jobs.count > 0
18
19
  end
19
20
 
20
21
  def self.workers
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 1
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 1.0.2.2
9
+ - 3
10
+ version: 1.0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - lostboy