symphony 0.12.2 → 0.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85ee70e26c4fe74380114b1b63f95eb93f6c215a1b23cf1a828703c2125fffe7
4
- data.tar.gz: 4cb40f1b75757fef45d83c241af182a420ca3b6eca337980752dd3510c7006c3
3
+ metadata.gz: 7222c714bd9a2268e47fa14996f96a92e6bc4e443c9212b61aa9a00b64a5dff9
4
+ data.tar.gz: a63326ee75b5dd8673f17757cb62e2608598623279a2616cd110db7fd97e3ee7
5
5
  SHA512:
6
- metadata.gz: 60e7267c6d3083fd8ae8e3e35dd736e0a7a4658cbe5d1cd73b0fdc65918c66037829ea9327602deceea82b90f86127454675c4c3134ed83084309a67c82d38bb
7
- data.tar.gz: 66b8c471588c9cc270fbceb0c7d46586b1da013407cd21b690cc487c8da60688145b756b1c2738c56808763eb89fa3859b43538cf56dfa894c1739ec1cb69102
6
+ metadata.gz: afc8ddd33eb3b437ca831426075a9f97927882baa372b356ad5da7e0f97f3c5a80422eae0f86224a87bde87ea2f14d24ce8a3dae5ee8e44b5896ce6889c9a5d6
7
+ data.tar.gz: 826de2c46e1b1511631dd036e897033b9633a9a2500ac59d95dbe3c884afaade0a10b45b56640f18de2b344d4e688ab259563cb433a2f9d1efe221911e34f5e9
Binary file
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,16 +1,47 @@
1
- 2019-07-09 Michael Granger <ged@FaerieMUD.org>
1
+ 2019-07-11 Michael Granger <ged@FaerieMUD.org>
2
2
 
3
- @ * lib/symphony/task_group/longlived.rb,
4
- | spec/symphony/task_group/longlived_spec.rb:
5
- | Rescue all runtime errors when measuring queue depth
6
- | [82eeeea469c1] [tip]
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
- | o * .gems, Rakefile, lib/symphony.rb, lib/symphony/daemon.rb,
11
- |/ lib/symphony/task.rb, lib/symphony/task_group.rb:
12
- | Add speculative use of Observability
13
- | [cd6d498d2847]
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
 
@@ -1,3 +1,10 @@
1
+ == v0.12.3 [2019-07-11] Michael Granger <ged@FaerieMUD.org>
2
+
3
+ Bugfixes:
4
+
5
+ - Re-establish AMQP connections after the task fork
6
+
7
+
1
8
  == v0.12.2 [2019-07-09] Michael Granger <ged@FaerieMUD.org>
2
9
 
3
10
  Bugfixes:
@@ -12,7 +12,7 @@ module Symphony
12
12
  Configurability
13
13
 
14
14
  # Library version constant
15
- VERSION = '0.12.2'
15
+ VERSION = '0.12.3'
16
16
 
17
17
  # Version-control revision constant
18
18
  REVISION = %q$Revision$
@@ -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.2
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-09 00:00:00.000000000 Z
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