torquebox-sidekiq-service 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog.md +5 -0
- data/VERSION +1 -1
- data/lib/torque_box/sidekiq_service.rb +3 -11
- data/torquebox-sidekiq-service.gemspec +5 -2
- metadata +18 -2
data/ChangeLog.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
@@ -6,23 +6,15 @@ module TorqueBox
|
|
6
6
|
|
7
7
|
def initialize(opts = {})
|
8
8
|
@config = opts.symbolize_keys.reject { |k, _| CONFIG_OPTIONS_TO_STRIP.include?(k) }
|
9
|
+
@mutex = Mutex.new
|
9
10
|
end
|
10
11
|
|
11
12
|
def start
|
12
|
-
Thread.new { run }
|
13
|
+
Thread.new { @mutex.synchronize { run } }
|
13
14
|
end
|
14
15
|
|
15
16
|
def stop
|
16
|
-
|
17
|
-
# if the launcher ever gets initialized. We really don't want to orphan a Sidekiq launcher
|
18
|
-
# if we can avoid it.
|
19
|
-
Timeout::timeout(5.minutes) do
|
20
|
-
while launcher.nil? && !start_failed
|
21
|
-
sleep 1
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
launcher.stop if launcher
|
17
|
+
@mutex.synchronize { launcher.stop } if launcher
|
26
18
|
end
|
27
19
|
|
28
20
|
def run
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "torquebox-sidekiq-service"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kevin Menard"]
|
12
|
-
s.date = "2013-05-
|
12
|
+
s.date = "2013-05-28"
|
13
13
|
s.description = " The TorqueBox Sidekiq service replaces the traditional Sidekiq CLI client for starting a Sidekiq processor. This\n allows TorqueBox features only available in-container to be usable by all your Sidekiq workers. It has the added\n benefit of reducing memory overhead by running in a single JVM and allows for better optimization through JIT and\n better debugging & profiling through TorqueBox's runtime inspection facilities.\n"
|
14
14
|
s.email = "nirvdrum@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -51,6 +51,7 @@ Gem::Specification.new do |s|
|
|
51
51
|
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
52
52
|
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
53
53
|
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
54
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
54
55
|
else
|
55
56
|
s.add_dependency(%q<torquebox-sidekiq-service>, [">= 0"])
|
56
57
|
s.add_dependency(%q<sidekiq>, [">= 0"])
|
@@ -61,6 +62,7 @@ Gem::Specification.new do |s|
|
|
61
62
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
62
63
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
63
64
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
65
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
64
66
|
end
|
65
67
|
else
|
66
68
|
s.add_dependency(%q<torquebox-sidekiq-service>, [">= 0"])
|
@@ -72,6 +74,7 @@ Gem::Specification.new do |s|
|
|
72
74
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
73
75
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
74
76
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
77
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
75
78
|
end
|
76
79
|
end
|
77
80
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: torquebox-sidekiq-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-05-
|
12
|
+
date: 2013-05-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: torquebox-sidekiq-service
|
@@ -155,6 +155,22 @@ dependencies:
|
|
155
155
|
none: false
|
156
156
|
prerelease: false
|
157
157
|
type: :development
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: jeweler
|
160
|
+
version_requirements: !ruby/object:Gem::Requirement
|
161
|
+
requirements:
|
162
|
+
- - '>='
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
165
|
+
none: false
|
166
|
+
requirement: !ruby/object:Gem::Requirement
|
167
|
+
requirements:
|
168
|
+
- - '>='
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: '0'
|
171
|
+
none: false
|
172
|
+
prerelease: false
|
173
|
+
type: :development
|
158
174
|
description: |2
|
159
175
|
The TorqueBox Sidekiq service replaces the traditional Sidekiq CLI client for starting a Sidekiq processor. This
|
160
176
|
allows TorqueBox features only available in-container to be usable by all your Sidekiq workers. It has the added
|