symphony 0.12.2 → 0.12.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/ChangeLog +40 -9
- data/History.rdoc +7 -0
- data/lib/symphony.rb +1 -1
- data/lib/symphony/task.rb +1 -0
- data/lib/symphony/task_group/longlived.rb +0 -4
- data/spec/symphony/task_group/longlived_spec.rb +0 -78
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7222c714bd9a2268e47fa14996f96a92e6bc4e443c9212b61aa9a00b64a5dff9
|
4
|
+
data.tar.gz: a63326ee75b5dd8673f17757cb62e2608598623279a2616cd110db7fd97e3ee7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afc8ddd33eb3b437ca831426075a9f97927882baa372b356ad5da7e0f97f3c5a80422eae0f86224a87bde87ea2f14d24ce8a3dae5ee8e44b5896ce6889c9a5d6
|
7
|
+
data.tar.gz: 826de2c46e1b1511631dd036e897033b9633a9a2500ac59d95dbe3c884afaade0a10b45b56640f18de2b344d4e688ab259563cb433a2f9d1efe221911e34f5e9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/ChangeLog
CHANGED
@@ -1,16 +1,47 @@
|
|
1
|
-
2019-07-
|
1
|
+
2019-07-11 Michael Granger <ged@FaerieMUD.org>
|
2
2
|
|
3
|
-
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
o * lib/symphony/daemon.rb:
|
4
|
+
| Observe with one description arg
|
5
|
+
| [fb1cb7e85622] [tip]
|
6
|
+
|
|
7
|
+
2019-07-10 Michael Granger <ged@FaerieMUD.org>
|
8
|
+
|
9
|
+
o * lib/symphony/task.rb:
|
10
|
+
| Rearrange and observe salient methods
|
11
|
+
| [9a00239b9bcd]
|
7
12
|
|
|
8
13
|
2019-07-05 Michael Granger <ged@FaerieMUD.org>
|
9
14
|
|
10
|
-
|
11
|
-
|
12
|
-
|
|
13
|
-
|
|
15
|
+
o * .gems, Rakefile, lib/symphony.rb, lib/symphony/daemon.rb,
|
16
|
+
| lib/symphony/task.rb, lib/symphony/task_group.rb:
|
17
|
+
| Add speculative use of Observability
|
18
|
+
| [4c0da09bdae2]
|
19
|
+
|
|
20
|
+
2019-07-10 Michael Granger <ged@FaerieMUD.org>
|
21
|
+
|
22
|
+
@ * lib/symphony/task.rb, lib/symphony/task_group/longlived.rb,
|
23
|
+
| spec/symphony/task_group/longlived_spec.rb:
|
24
|
+
| Re-establish AMQP connections after the task fork
|
25
|
+
| [70a6afb0622a]
|
26
|
+
|
|
27
|
+
2019-07-09 Michael Granger <ged@FaerieMUD.org>
|
28
|
+
|
29
|
+
o * .hgtags:
|
30
|
+
| Added tag v0.12.2 for changeset 9222d54d3aaa
|
31
|
+
| [fd8cb2a491c3]
|
32
|
+
|
|
33
|
+
o * .hgsigs:
|
34
|
+
| Added signature for changeset 96a011854bc7
|
35
|
+
| [9222d54d3aaa] [v0.12.2]
|
36
|
+
|
|
37
|
+
o * History.rdoc, lib/symphony.rb, symphony.gemspec:
|
38
|
+
| Bump the patch version, update history.
|
39
|
+
| [96a011854bc7]
|
40
|
+
|
|
41
|
+
o * lib/symphony/task_group/longlived.rb,
|
42
|
+
| spec/symphony/task_group/longlived_spec.rb:
|
43
|
+
| Rescue all runtime errors when measuring queue depth
|
44
|
+
| [82eeeea469c1]
|
14
45
|
|
|
15
46
|
2019-07-02 Michael Granger <ged@FaerieMUD.org>
|
16
47
|
|
data/History.rdoc
CHANGED
data/lib/symphony.rb
CHANGED
data/lib/symphony/task.rb
CHANGED
@@ -69,6 +69,7 @@ class Symphony::Task
|
|
69
69
|
### Prepare the process after being forked from the Daemon.
|
70
70
|
def self::after_fork
|
71
71
|
self.log.debug "After fork [%d]: Threads: %p" % [ Process.pid, ThreadGroup::Default.list ]
|
72
|
+
Symphony::Queue.reset
|
72
73
|
Process.setpgrp
|
73
74
|
Symphony.config.install if Symphony.config
|
74
75
|
end
|
@@ -66,10 +66,6 @@ class Symphony::TaskGroup::LongLived < Symphony::TaskGroup
|
|
66
66
|
|
67
67
|
count = @queue.message_count
|
68
68
|
self.add_sample( count )
|
69
|
-
|
70
|
-
rescue => err
|
71
|
-
self.log.debug "%p while counting messages (%s); resetting."% [ err.class, err.message ]
|
72
|
-
@queue = nil
|
73
69
|
end
|
74
70
|
|
75
71
|
|
@@ -217,84 +217,6 @@ describe Symphony::TaskGroup::LongLived do
|
|
217
217
|
expect( task_group.workers.size ).to eq( 1 )
|
218
218
|
end
|
219
219
|
|
220
|
-
|
221
|
-
it "reconnects if the message-count channel goes away" do
|
222
|
-
samples = [ 4, 3, 3 ]
|
223
|
-
task_group.sample_size = samples.size
|
224
|
-
|
225
|
-
allow( Process ).to receive( :setpgid )
|
226
|
-
|
227
|
-
channel1 = double( Bunny::Channel )
|
228
|
-
channel2 = double( Bunny::Channel )
|
229
|
-
queue1 = double( Bunny::Queue )
|
230
|
-
queue2 = double( Bunny::Queue )
|
231
|
-
|
232
|
-
expect( Symphony::Queue ).to receive( :amqp_channel ).
|
233
|
-
twice.
|
234
|
-
and_return( channel1, channel2 )
|
235
|
-
|
236
|
-
expect( channel1 ).to receive( :queue ).
|
237
|
-
with( task.queue_name, passive: true, prefetch: 0 ).
|
238
|
-
and_return( queue1 )
|
239
|
-
expect( queue1 ).to_not receive( :consumer_count )
|
240
|
-
expect( queue1 ).to receive( :message_count ).
|
241
|
-
and_raise( Bunny::ChannelAlreadyClosed.new("cannot use a closed channel!", channel1) )
|
242
|
-
|
243
|
-
expect( channel2 ).to receive( :queue ).
|
244
|
-
with( task.queue_name, passive: true, prefetch: 0 ).
|
245
|
-
and_return( queue2 )
|
246
|
-
expect( queue2 ).to receive( :consumer_count ) do
|
247
|
-
task_group.workers.size
|
248
|
-
end.at_least( :once )
|
249
|
-
expect( queue2 ).to receive( :message_count ).and_return( *samples )
|
250
|
-
|
251
|
-
start = 1414002605
|
252
|
-
start.upto( start + samples.size + 2 ) do |time|
|
253
|
-
Timecop.freeze( time ) do
|
254
|
-
task_group.adjust_workers
|
255
|
-
end
|
256
|
-
end
|
257
|
-
end
|
258
|
-
|
259
|
-
|
260
|
-
it "reconnects if the message-count call times out" do
|
261
|
-
samples = [ 4, 3, 3 ]
|
262
|
-
task_group.sample_size = samples.size
|
263
|
-
|
264
|
-
allow( Process ).to receive( :setpgid )
|
265
|
-
|
266
|
-
channel1 = double( Bunny::Channel )
|
267
|
-
channel2 = double( Bunny::Channel )
|
268
|
-
queue1 = double( Bunny::Queue )
|
269
|
-
queue2 = double( Bunny::Queue )
|
270
|
-
|
271
|
-
expect( Symphony::Queue ).to receive( :amqp_channel ).
|
272
|
-
twice.
|
273
|
-
and_return( channel1, channel2 )
|
274
|
-
|
275
|
-
expect( channel1 ).to receive( :queue ).
|
276
|
-
with( task.queue_name, passive: true, prefetch: 0 ).
|
277
|
-
and_return( queue1 )
|
278
|
-
expect( queue1 ).to_not receive( :consumer_count )
|
279
|
-
expect( queue1 ).to receive( :message_count ).
|
280
|
-
and_raise( Timeout::Error.new )
|
281
|
-
|
282
|
-
expect( channel2 ).to receive( :queue ).
|
283
|
-
with( task.queue_name, passive: true, prefetch: 0 ).
|
284
|
-
and_return( queue2 )
|
285
|
-
expect( queue2 ).to receive( :consumer_count ) do
|
286
|
-
task_group.workers.size
|
287
|
-
end.at_least( :once )
|
288
|
-
expect( queue2 ).to receive( :message_count ).and_return( *samples )
|
289
|
-
|
290
|
-
start = 1414002605
|
291
|
-
start.upto( start + samples.size + 2 ) do |time|
|
292
|
-
Timecop.freeze( time ) do
|
293
|
-
task_group.adjust_workers
|
294
|
-
end
|
295
|
-
end
|
296
|
-
end
|
297
|
-
|
298
220
|
end
|
299
221
|
|
300
222
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: symphony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.12.
|
4
|
+
version: 0.12.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Granger
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
v4qqqa27Bs468d6SoPxjSm8a2mM9HZ4OdWhq4tFsbTeXDVquCfi64OTEaTt2xQdR
|
36
36
|
JnC4lpJfCP6aCXa5h2XAQfPSH636cQap
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2019-07-
|
38
|
+
date: 2019-07-11 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: configurability
|
metadata.gz.sig
CHANGED
Binary file
|