resque-population-control 0.6.0 → 0.7.0
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.
- checksums.yaml +4 -4
- data/lib/resque/plugins/population_control.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12df14cf5cd0637c29e83f1f0f6096dcc4b5bd8c
|
|
4
|
+
data.tar.gz: 2ff8e90d368fe63cd150de4cd73263a62b0b724b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e6dc015a7751d6d7ed506392a1bf063ef403bc4de63363c4017c6229379c3c8ee41381a91bece445aba88536829c0c3a12ff916fcafc928b426151a97ebf0e74
|
|
7
|
+
data.tar.gz: 9b5cf43514c1348454c7f4ec056addfedda992fcdeea5159e97f1530337ecc4af6e9045c03ae841335902148d504cc70599068d2ecce6f3e805b8cdd9812a940
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
module Resque
|
|
2
2
|
module Plugins
|
|
3
3
|
module PopulationControl
|
|
4
|
-
VERSION = "0.
|
|
4
|
+
VERSION = "0.7.0"
|
|
5
5
|
|
|
6
6
|
class PopulationExceeded < ::StandardError; end;
|
|
7
7
|
|
|
@@ -22,7 +22,7 @@ module Resque
|
|
|
22
22
|
population_control_count >= population_control_max
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
-
def
|
|
25
|
+
def before_enqueue_population_control *args
|
|
26
26
|
population_control_count = population_control_increment
|
|
27
27
|
if population_control_count > population_control_max
|
|
28
28
|
population_control_decrement
|
|
@@ -36,11 +36,11 @@ module Resque
|
|
|
36
36
|
end
|
|
37
37
|
end
|
|
38
38
|
|
|
39
|
-
def
|
|
39
|
+
def after_perform_population_control *args
|
|
40
40
|
population_control_decrement
|
|
41
41
|
end
|
|
42
42
|
|
|
43
|
-
def
|
|
43
|
+
def on_failure_population_control e, *args
|
|
44
44
|
population_control_decrement
|
|
45
45
|
end
|
|
46
46
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: resque-population-control
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Misha Conway
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-06-
|
|
11
|
+
date: 2016-06-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|