angael 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/angael/version.rb +1 -1
- data/lib/angael/worker.rb +8 -0
- metadata +1 -1
data/lib/angael/version.rb
CHANGED
data/lib/angael/worker.rb
CHANGED
@@ -32,6 +32,8 @@ module Angael
|
|
32
32
|
@pid = fork_child do
|
33
33
|
__info("Started")
|
34
34
|
|
35
|
+
@pid = $$
|
36
|
+
|
35
37
|
if respond_to?(:after_fork)
|
36
38
|
__debug("Running after fork callback")
|
37
39
|
after_fork
|
@@ -133,6 +135,12 @@ module Angael
|
|
133
135
|
@stopping
|
134
136
|
end
|
135
137
|
|
138
|
+
def inspect
|
139
|
+
"#<JobWorker:#{object_id} @pid=#{pid}>"
|
140
|
+
end
|
141
|
+
|
142
|
+
|
143
|
+
|
136
144
|
#########
|
137
145
|
private #
|
138
146
|
#########
|