rcarvalho-workless 1.0.2.15 → 1.0.2.16
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/workless/scalers/heroku_cedar.rb +4 -3
- metadata +2 -2
@@ -29,10 +29,11 @@ module Delayed
|
|
29
29
|
end
|
30
30
|
rescue
|
31
31
|
end
|
32
|
-
end
|
33
32
|
|
34
|
-
|
35
|
-
|
33
|
+
def self.workers
|
34
|
+
client.ps(ENV['APP_NAME']).count { |p| p["process"] =~ /worker\.\d?/ }
|
35
|
+
end
|
36
|
+
|
36
37
|
end
|
37
38
|
|
38
39
|
end
|