heroku_delayed_job_autoscale 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -8,6 +8,14 @@ module HerokuDelayedJobAutoscale
|
|
8
8
|
|
9
9
|
@@autoscale_manager = HerokuDelayedJobAutoscale::Manager::Local
|
10
10
|
|
11
|
+
def self.autoscale_manager
|
12
|
+
@@autoscale_manager
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.autoscale_manager=(manager)
|
16
|
+
@@autoscale_manager = manager
|
17
|
+
end
|
18
|
+
|
11
19
|
def enqueue(job)
|
12
20
|
autoscale_enqueue(job)
|
13
21
|
end
|
@@ -35,7 +43,7 @@ module HerokuDelayedJobAutoscale
|
|
35
43
|
|
36
44
|
protected
|
37
45
|
def autoscale_client
|
38
|
-
@autoscale_client ||=
|
46
|
+
@autoscale_client ||= self.class.autoscale_manager.new
|
39
47
|
end
|
40
48
|
|
41
49
|
end
|