rcarvalho-workless 1.0.2.2 → 1.0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/workless/scalers/heroku.rb +2 -1
- metadata +2 -2
@@ -14,7 +14,8 @@ module Delayed
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.down
|
17
|
-
|
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
|