rcarvalho-workless 1.0.2.16 → 1.0.2.17
Sign up to get free protection for your applications and to get access to all the features.
@@ -9,7 +9,7 @@ module Delayed
|
|
9
9
|
extend Delayed::Workless::Scaler::HerokuClient
|
10
10
|
|
11
11
|
def self.up
|
12
|
-
nw = self.calculate_num_workers
|
12
|
+
nw = self.calculate_num_workers(true)
|
13
13
|
if nw
|
14
14
|
if self.num_workers_cache != nw
|
15
15
|
self.num_workers_cache = nw
|
@@ -33,7 +33,7 @@ module Delayed
|
|
33
33
|
def self.workers
|
34
34
|
client.ps(ENV['APP_NAME']).count { |p| p["process"] =~ /worker\.\d?/ }
|
35
35
|
end
|
36
|
-
|
36
|
+
|
37
37
|
end
|
38
38
|
|
39
39
|
end
|