unicorn-camilo 4.8.2.5.16 → 4.8.2.5.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/unicorn/configurator.rb +15 -1
- data/unicorn.gemspec +1 -1
- 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: 977f4f9c4d25a78b1b84eb604168414d489ac1c5
|
4
|
+
data.tar.gz: 5b2a267b817876a1a78333301be78a24c1d02a23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7156259613cd2729a25d3d21c49ea7e3d4213798b9a97b33d35e21a6185ecefe00fa0882da72cc583967f28ca1d6960bcb20519d7ab885766ffa6d0f7cd4688d
|
7
|
+
data.tar.gz: ba09f8497bc990b85af49fcd860034c23eca2077821e0c7d7f212c165f6499289eee774f3ebfc6ff2e53e216a7c887f7bc66389d3fe243da1b7d81f0c31d349d
|
data/lib/unicorn/configurator.rb
CHANGED
@@ -177,7 +177,21 @@ class Unicorn::Configurator
|
|
177
177
|
# with SIGKILL, the point of this callback is NOT to prevent killing
|
178
178
|
# but to provide an instrumentation hook
|
179
179
|
def before_murder(*args, &block)
|
180
|
-
|
180
|
+
set_hook_arg = if block_given?
|
181
|
+
# This hook is meant a an instrumentation point, it should not prevent the
|
182
|
+
# worker from getting killed exception will be logged and move on
|
183
|
+
new_block = Proc.new do
|
184
|
+
begin
|
185
|
+
block.call
|
186
|
+
rescue e
|
187
|
+
logger.error("Error trying to run before murder exception: #{e.name}")
|
188
|
+
end
|
189
|
+
end
|
190
|
+
else
|
191
|
+
args[0]
|
192
|
+
end
|
193
|
+
|
194
|
+
set_hook(:before_murder, set_hook_arg, 1)
|
181
195
|
end
|
182
196
|
|
183
197
|
# sets the timeout of worker processes to +seconds+. Workers
|
data/unicorn.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unicorn-camilo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.8.2.5.
|
4
|
+
version: 4.8.2.5.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Unicorn hackers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|