resque-multi-job-forks 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/resque-multi-job-forks.rb +10 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a6c7a43817f8c3f8d4b3ed8a0c7efc997c079de4
|
4
|
+
data.tar.gz: 374c601a0654d238db83989970a3317d2399f65b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc729ac05237225b44fd4a2745e3a97aca598cb51561624c34d29183a09b321789e8e095cf656b9234a4875c38b03aeda74c5c3bc862973f310fa8055d31c80d
|
7
|
+
data.tar.gz: eb6a4d42cad8379ee8c18f9ece2231ee16298ba359a6f036e5b5d426904dc5d1b922c0bb5037abd4e7d661d48477527d53eab22e39bb5b7712f47935a4eaafc0
|
@@ -50,6 +50,16 @@ module Resque
|
|
50
50
|
end
|
51
51
|
alias_method :working_on_without_worker_registration, :working_on
|
52
52
|
alias_method :working_on, :working_on_with_worker_registration
|
53
|
+
|
54
|
+
# Reconnect only once
|
55
|
+
def reconnect_with_multi_job_forks
|
56
|
+
unless @reconnected
|
57
|
+
reconnect_without_multi_job_forks
|
58
|
+
@reconnected = true
|
59
|
+
end
|
60
|
+
end
|
61
|
+
alias_method :reconnect_without_multi_job_forks, :reconnect
|
62
|
+
alias_method :reconnect, :reconnect_with_multi_job_forks
|
53
63
|
end
|
54
64
|
|
55
65
|
# Need to tell the child to shutdown since it might be looping performing multiple jobs per fork
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-multi-job-forks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mick Staugaard
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2015-10-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: resque
|
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
102
|
version: '0'
|
103
103
|
requirements: []
|
104
104
|
rubyforge_project:
|
105
|
-
rubygems_version: 2.
|
105
|
+
rubygems_version: 2.4.5.1
|
106
106
|
signing_key:
|
107
107
|
specification_version: 4
|
108
108
|
summary: Have your resque workers process more that one job
|
@@ -110,3 +110,4 @@ test_files:
|
|
110
110
|
- test/helper.rb
|
111
111
|
- test/test_resque-multi-job-forks.rb
|
112
112
|
- test/test_rss_reader.rb
|
113
|
+
has_rdoc:
|