symphony 0.3.0 → 0.4.0

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
  SHA1:
3
- metadata.gz: 2ba69bb4284905cfc71472c6b5629c3c063dd546
4
- data.tar.gz: 2bf944cdfce3b98d5eaf91732a9ef62f093eef65
3
+ metadata.gz: d010875d95ecf17ce0545379d8192f0af823d93a
4
+ data.tar.gz: 94e08919b08b5a95e68ddc8989de48419e7c9275
5
5
  SHA512:
6
- metadata.gz: 3c656bb9f2ce03e943eda18baec1eac6e7d3c9aad80c771db522cc4c38984e9fdf214fe8ddb0379208775f050877badac843507c0a3cb575ac10c05b8ddbbda6
7
- data.tar.gz: 2125f48a7132995aa9a60465e430b656cedf198f48c6e5688e7f317b911f63d0e45c1f2bc5bde4e8b69c7f057397536dcfe39acd60f65c31c2ebb232d16a2e4c
6
+ metadata.gz: 117430acaa264b8160de3df95869a34ffaf2dbe0e471269e333838ee52058fc4bd7932bcb99bccd38cbd00cd876c02addf413d15780a9d2fd132358321d1e966
7
+ data.tar.gz: ffed928bb686cd2aa65d82d696e1e487564e65d7b5f6b78a9a7a47ff71e303d5bb83a10257714333f4deca80d0381a246921610c9cca0758ff83482121ee5900
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/ChangeLog CHANGED
@@ -1,21 +1,121 @@
1
+ 2014-03-28 Mahlon E. Smith <mahlon@laika.com>
2
+
3
+ * lib/symphony/signal_handling.rb:
4
+ Just return true if a signal was handled in wait_for_signals(), or
5
+ false if a timeout occurred.
6
+ [aa8c912414a6] [tip]
7
+
8
+ * lib/symphony/signal_handling.rb:
9
+ Add an optional (disabled by default) timeout for the signal
10
+ handling wait_for_signals() method, for potential re-use in
11
+ alternate loop actions.
12
+ [5a19dd31e618]
13
+
14
+ 2014-03-28 Michael Granger <ged@FaerieMUD.org>
15
+
16
+ * .hgtags:
17
+ Added tag v0.3.0 for changeset 3fa6e3a90e8e
18
+ [b3383a3c3948]
19
+
20
+ * .hgsigs:
21
+ Added signature for changeset 5e22b47ec5dc
22
+ [3fa6e3a90e8e] [v0.3.0]
23
+
24
+ * History.rdoc:
25
+ Update history.
26
+ [5e22b47ec5dc]
27
+
28
+ * Manifest.txt, TODO.md, lib/symphony/daemon.rb, lib/symphony/task.rb,
29
+ spec/symphony/daemon_spec.rb, spec/symphony/task_spec.rb,
30
+ spec/symphony_spec.rb:
31
+ Add some more Task specs, add a placeholder for Daemon specs.
32
+ [97812070cd5b] [github/master]
33
+
34
+ * TODO.md, USAGE.rdoc:
35
+ Update docs until we implement the generic plugin system
36
+ [5ae518abaadb]
37
+
38
+ * Manifest.txt, lib/symphony/daemon.rb, lib/symphony/metrics.rb,
39
+ lib/symphony/queue.rb, lib/symphony/task.rb,
40
+ spec/symphony/queue_spec.rb:
41
+ Put task children in their own process group so they don't get
42
+ signals from the controlling tty.
43
+ [60ea5a828e74]
44
+
45
+ * .pryrc, bin/symphony, lib/symphony/daemon.rb,
46
+ lib/symphony/signal_handling.rb, spec/symphony/task_spec.rb:
47
+ Checkpoint of work on the Daemon
48
+ [796ecc9bc2b8]
49
+
50
+ 2014-03-27 Michael Granger <ged@FaerieMUD.org>
51
+
52
+ * .rvmrc, Manifest.txt, README.rdoc, Rakefile, USAGE.rdoc,
53
+ bin/groundcontrol, bin/groundcontrol-task, bin/symphony, bin
54
+ /symphony-task, experiments/ps-publisher.rb, lib/groundcontrol.rb,
55
+ lib/groundcontrol/daemon.rb, lib/groundcontrol/metrics.rb,
56
+ lib/groundcontrol/mixins.rb, lib/groundcontrol/queue.rb,
57
+ lib/groundcontrol/routing.rb, lib/groundcontrol/signal_handling.rb,
58
+ lib/groundcontrol/task.rb, lib/groundcontrol/tasks/auditor.rb,
59
+ lib/groundcontrol/tasks/failure_logger.rb,
60
+ lib/groundcontrol/tasks/pinger.rb,
61
+ lib/groundcontrol/tasks/simulator.rb,
62
+ lib/groundcontrol/tasks/ssh.rb,
63
+ lib/groundcontrol/tasks/sshscript.rb, lib/symphony.rb,
64
+ lib/symphony/daemon.rb, lib/symphony/metrics.rb,
65
+ lib/symphony/mixins.rb, lib/symphony/queue.rb,
66
+ lib/symphony/routing.rb, lib/symphony/signal_handling.rb,
67
+ lib/symphony/task.rb, lib/symphony/tasks/auditor.rb,
68
+ lib/symphony/tasks/failure_logger.rb, lib/symphony/tasks/pinger.rb,
69
+ lib/symphony/tasks/simulator.rb, lib/symphony/tasks/ssh.rb,
70
+ lib/symphony/tasks/sshscript.rb, spec/groundcontrol/mixins_spec.rb,
71
+ spec/groundcontrol/queue_spec.rb, spec/groundcontrol/task_spec.rb,
72
+ spec/groundcontrol_spec.rb, spec/symphony/mixins_spec.rb,
73
+ spec/symphony/queue_spec.rb, spec/symphony/task_spec.rb,
74
+ spec/symphony_spec.rb:
75
+ Rename from GroundControl -> Symphony
76
+ [cf61ced7d585]
77
+
78
+ 2014-03-26 Michael Granger <ged@FaerieMUD.org>
79
+
80
+ * Manifest.txt, lib/groundcontrol.rb,
81
+ lib/groundcontrol/tasks/failure_logger.rb,
82
+ spec/groundcontrol/queue_spec.rb, spec/groundcontrol/task_spec.rb:
83
+ Better queue coverage, prerelease gem prep.
84
+ [6b1db8abd866]
85
+
86
+ 2014-03-24 Michael Granger <ged@FaerieMUD.org>
87
+
88
+ * TODO.md, lib/groundcontrol/queue.rb,
89
+ spec/groundcontrol/queue_spec.rb, spec/groundcontrol/task_spec.rb:
90
+ Checkpoint of work on coverage
91
+ [e05a4224b0d0]
92
+
93
+ 2014-03-21 Michael Granger <ged@FaerieMUD.org>
94
+
95
+ * Rakefile, lib/groundcontrol.rb, lib/groundcontrol/queue.rb,
96
+ lib/groundcontrol/task.rb, lib/groundcontrol/tasks/pinger.rb,
97
+ spec/groundcontrol/queue_spec.rb, spec/groundcontrol/task_spec.rb:
98
+ Start catching specs up with the code.
99
+ [9857865f6cec]
100
+
1
101
  2014-03-17 Mahlon E. Smith <mahlon@laika.com>
2
102
 
3
103
  * USAGE.rdoc:
4
104
  English, do you speak it?
5
- [7297d2999838] [tip]
105
+ [7297d2999838]
6
106
 
7
107
  2014-03-17 Mahlon E. Smith <mahlon@martini.nu>
8
108
 
9
- * README.rdoc, USAGE.rdoc, lib/symphony/routing.rb:
109
+ * README.rdoc, USAGE.rdoc, lib/groundcontrol/routing.rb:
10
110
  Clean up the README a little, add a USAGE document (that may evolve
11
111
  into a manual later), and allow the #on method in the routing plugin
12
112
  to accept an array of binding topics.
13
- [694dfa71528f] [github/master]
113
+ [694dfa71528f]
14
114
 
15
115
  2014-03-15 Mahlon E. Smith <mahlon@martini.nu>
16
116
 
17
117
  * Manifest.txt, Rakefile, experiments/mailer_task.rb,
18
- lib/symphony/tasks/messaging.rb:
118
+ lib/groundcontrol/tasks/messaging.rb:
19
119
  Require a recent rubygems to fix a metriks issue with the hitimes
20
120
  dependency. Remove accidentally committed messaging task, a (nearly)
21
121
  empty mailer experiment, and an internal rdoc server location.
@@ -27,38 +127,38 @@
27
127
  Add an example publisher with some interestingish test data
28
128
  [b671046cb46a]
29
129
 
30
- * lib/symphony/tasks/auditor.rb,
31
- lib/symphony/tasks/failure_logger.rb,
32
- lib/symphony/tasks/simulator.rb:
130
+ * lib/groundcontrol/tasks/auditor.rb,
131
+ lib/groundcontrol/tasks/failure_logger.rb,
132
+ lib/groundcontrol/tasks/simulator.rb:
33
133
  Explicitly name queues, clean up the simple task types
34
134
  [9be720b141c5]
35
135
 
36
- * lib/symphony/queue.rb:
136
+ * lib/groundcontrol/queue.rb:
37
137
  Simplify the queue configuration
38
138
  [506e35c44fb7]
39
139
 
40
- * lib/symphony/routing.rb:
140
+ * lib/groundcontrol/routing.rb:
41
141
  Fix routing mixin
42
142
  [0e1a756a8c72]
43
143
 
44
144
  * .autotest, Manifest.txt, bin/gctask, bin/gcworkerd,
45
- bin/symphony, bin/symphony-task,
46
- lib/symphony/task.rb, lib/symphony/tasks/simulator.rb:
145
+ bin/groundcontrol, bin/groundcontrol-task,
146
+ lib/groundcontrol/task.rb, lib/groundcontrol/tasks/simulator.rb:
47
147
  Checkpoint of work on timeout; renamed binaries
48
148
  [6b0655dc6892]
49
149
 
50
- * .rvm.gems, Rakefile, lib/symphony/metrics.rb,
51
- lib/symphony/routing.rb, lib/symphony/task.rb,
52
- lib/symphony/tasks/auditor.rb,
53
- lib/symphony/tasks/failure_logger.rb,
54
- lib/symphony/tasks/simulator.rb:
150
+ * .rvm.gems, Rakefile, lib/groundcontrol/metrics.rb,
151
+ lib/groundcontrol/routing.rb, lib/groundcontrol/task.rb,
152
+ lib/groundcontrol/tasks/auditor.rb,
153
+ lib/groundcontrol/tasks/failure_logger.rb,
154
+ lib/groundcontrol/tasks/simulator.rb:
55
155
  Checkpoint before adding timeout
56
156
  [c1a33bbb4490]
57
157
 
58
158
  2014-03-13 Michael Granger <ged@FaerieMUD.org>
59
159
 
60
- * lib/symphony/queue.rb, lib/symphony/signal_handling.rb,
61
- lib/symphony/task.rb:
160
+ * lib/groundcontrol/queue.rb, lib/groundcontrol/signal_handling.rb,
161
+ lib/groundcontrol/task.rb:
62
162
  Implement task restart on SIGHUP
63
163
  [1b4d965d8d48]
64
164
 
@@ -66,9 +166,9 @@
66
166
  Ignore logfiles
67
167
  [9a8bf7a02a7b]
68
168
 
69
- * lib/symphony/tasks/auditor.rb,
70
- lib/symphony/tasks/failure_logger.rb,
71
- lib/symphony/tasks/simulator.rb:
169
+ * lib/groundcontrol/tasks/auditor.rb,
170
+ lib/groundcontrol/tasks/failure_logger.rb,
171
+ lib/groundcontrol/tasks/simulator.rb:
72
172
  Add some basic task types: work simulator, audit logger, failure
73
173
  logger
74
174
  [49b034c13f78]
@@ -79,50 +179,50 @@
79
179
 
80
180
  2014-03-12 Mahlon E. Smith <mahlon@martini.nu>
81
181
 
82
- * lib/symphony/queue.rb:
182
+ * lib/groundcontrol/queue.rb:
83
183
  Retain the exchange -> queue binding for pre-existing queues.
84
184
  [bc11d76f7ef7]
85
185
 
86
186
  2014-03-12 Michael Granger <ged@FaerieMUD.org>
87
187
 
88
- * lib/symphony/queue.rb, lib/symphony/task.rb,
89
- lib/symphony/tasks/auditor.rb:
188
+ * lib/groundcontrol/queue.rb, lib/groundcontrol/task.rb,
189
+ lib/groundcontrol/tasks/auditor.rb:
90
190
  Checkpoint commit of AMQP work
91
191
  [3ec6040c9e98]
92
192
 
93
- * lib/symphony/queue.rb:
193
+ * lib/groundcontrol/queue.rb:
94
194
  Use a class-instance variable instead of thread-local for AMQP
95
195
  objects
96
196
  [6401e5aedf57]
97
197
 
98
- * lib/symphony/queue.rb:
198
+ * lib/groundcontrol/queue.rb:
99
199
  Re-raise errors from Bunny while handling messages
100
200
  [384ab73d9b7f]
101
201
 
102
202
  2014-03-11 Michael Granger <ged@FaerieMUD.org>
103
203
 
104
- * lib/symphony/queue.rb, lib/symphony/task.rb,
105
- lib/symphony/tasks/auditor.rb,
106
- spec/symphony/queue_spec.rb:
204
+ * lib/groundcontrol/queue.rb, lib/groundcontrol/task.rb,
205
+ lib/groundcontrol/tasks/auditor.rb,
206
+ spec/groundcontrol/queue_spec.rb:
107
207
  Checkpoint of work on work model, subscription
108
208
  [b023dab4997c]
109
209
 
110
210
  * .hgignore, History.rdoc, Manifest.txt, Rakefile, bin/gctask,
111
- lib/symphony/daemon.rb, lib/symphony/queue.rb,
112
- lib/symphony/signal_handling.rb, lib/symphony/task.rb,
113
- lib/symphony/tasks/auditor.rb,
114
- lib/symphony/tasks/messaging.rb,
115
- spec/symphony/mixins_spec.rb, spec/symphony/queue_spec.rb,
116
- spec/symphony/task_spec.rb, spec/symphony_spec.rb:
211
+ lib/groundcontrol/daemon.rb, lib/groundcontrol/queue.rb,
212
+ lib/groundcontrol/signal_handling.rb, lib/groundcontrol/task.rb,
213
+ lib/groundcontrol/tasks/auditor.rb,
214
+ lib/groundcontrol/tasks/messaging.rb,
215
+ spec/groundcontrol/mixins_spec.rb, spec/groundcontrol/queue_spec.rb,
216
+ spec/groundcontrol/task_spec.rb, spec/groundcontrol_spec.rb:
117
217
  Checkpoint commit.
118
218
  [e86edf8ff23c]
119
219
 
120
220
  2014-03-03 Michael Granger <ged@FaerieMUD.org>
121
221
 
122
222
  * .rvm.gems, Rakefile, experiments/mailer_task.rb,
123
- lib/symphony/queue.rb, lib/symphony/task.rb,
124
- lib/symphony/tasks/pinger.rb, spec/symphony/queue_spec.rb,
125
- spec/symphony/task_spec.rb, spec/helpers.rb:
223
+ lib/groundcontrol/queue.rb, lib/groundcontrol/task.rb,
224
+ lib/groundcontrol/tasks/pinger.rb, spec/groundcontrol/queue_spec.rb,
225
+ spec/groundcontrol/task_spec.rb, spec/helpers.rb:
126
226
  Checkpoint of the work from this morning
127
227
  [5c8021195e16]
128
228
 
@@ -132,26 +232,26 @@
132
232
  Rakefile, bin/gcworkerd, experiments/.foreman, experiments/Procfile,
133
233
  experiments/consumer-sketch.rb, experiments/mailer_task.rb,
134
234
  experiments/producer-sketch.rb, experiments/ssh_system.rb,
135
- experiments/test_script.sh, lib/symphony.rb,
136
- lib/symphony/daemon.rb, lib/symphony/mixins.rb,
137
- lib/symphony/queue.rb, lib/symphony/signal_handling.rb,
138
- lib/symphony/task.rb, lib/symphony/tasks/pinger.rb,
139
- lib/symphony/tasks/ssh.rb,
140
- lib/symphony/tasks/sshscript.rb, lib/laika/symphony.rb,
141
- lib/laika/symphony/job.rb, lib/laika/symphony/queue.rb,
142
- lib/laika/symphony/task.rb,
143
- lib/laika/symphony/tasks/pinger.rb,
144
- lib/laika/symphony/tasks/ssh.rb,
145
- lib/laika/symphony/tasks/sshscript.rb,
146
- lib/laika/symphony/worker.rb,
147
- spec/symphony/mixins_spec.rb, spec/symphony/queue_spec.rb,
148
- spec/symphony_spec.rb, spec/helpers.rb,
149
- spec/laika/symphony/job_spec.rb,
150
- spec/laika/symphony/queue_spec.rb,
151
- spec/laika/symphony/task_spec.rb,
152
- spec/laika/symphony_spec.rb,
153
- spec/lib/symphonyconstants.rb,
154
- spec/lib/symphonyhelpers.rb:
235
+ experiments/test_script.sh, lib/groundcontrol.rb,
236
+ lib/groundcontrol/daemon.rb, lib/groundcontrol/mixins.rb,
237
+ lib/groundcontrol/queue.rb, lib/groundcontrol/signal_handling.rb,
238
+ lib/groundcontrol/task.rb, lib/groundcontrol/tasks/pinger.rb,
239
+ lib/groundcontrol/tasks/ssh.rb,
240
+ lib/groundcontrol/tasks/sshscript.rb, lib/laika/groundcontrol.rb,
241
+ lib/laika/groundcontrol/job.rb, lib/laika/groundcontrol/queue.rb,
242
+ lib/laika/groundcontrol/task.rb,
243
+ lib/laika/groundcontrol/tasks/pinger.rb,
244
+ lib/laika/groundcontrol/tasks/ssh.rb,
245
+ lib/laika/groundcontrol/tasks/sshscript.rb,
246
+ lib/laika/groundcontrol/worker.rb,
247
+ spec/groundcontrol/mixins_spec.rb, spec/groundcontrol/queue_spec.rb,
248
+ spec/groundcontrol_spec.rb, spec/helpers.rb,
249
+ spec/laika/groundcontrol/job_spec.rb,
250
+ spec/laika/groundcontrol/queue_spec.rb,
251
+ spec/laika/groundcontrol/task_spec.rb,
252
+ spec/laika/groundcontrol_spec.rb,
253
+ spec/lib/groundcontrolconstants.rb,
254
+ spec/lib/groundcontrolhelpers.rb:
155
255
  Checkpoint of the weekend's work
156
256
  [4d3da7e3530b]
157
257
 
@@ -175,7 +275,7 @@
175
275
 
176
276
  2012-09-24 Michael Granger <ged@FaerieMUD.org>
177
277
 
178
- * lib/laika/symphony/tasks/sshscript.rb:
278
+ * lib/laika/groundcontrol/tasks/sshscript.rb:
179
279
  Adding a 'nocleanup' option to the sshscript task class.
180
280
 
181
281
  This is to enable easy troubleshooting; just re-run a failing
@@ -193,13 +293,13 @@
193
293
  Added signature for changeset 34b213a4b895
194
294
  [3027c0e32c9a] [v0.1.0]
195
295
 
196
- * History.rdoc, lib/laika/symphony.rb,
197
- spec/laika/symphony/job_spec.rb:
296
+ * History.rdoc, lib/laika/groundcontrol.rb,
297
+ spec/laika/groundcontrol/job_spec.rb:
198
298
  Bump the minor version, update history.
199
299
  [34b213a4b895]
200
300
 
201
- * bin/gcworkerd, lib/laika/symphony/task.rb,
202
- lib/laika/symphony/worker.rb:
301
+ * bin/gcworkerd, lib/laika/groundcontrol/task.rb,
302
+ lib/laika/groundcontrol/worker.rb:
203
303
  Adding beginnings of worker throttling.
204
304
  [399117e719ba]
205
305
 
@@ -217,8 +317,8 @@
217
317
  Added signature for changeset ea9a4eb4ef02
218
318
  [82d1fc26369f] [v0.0.1]
219
319
 
220
- * Manifest.txt, bin/symphony:
221
- Remove the bin/symphony stub.
320
+ * Manifest.txt, bin/groundcontrol:
321
+ Remove the bin/groundcontrol stub.
222
322
  [ea9a4eb4ef02]
223
323
 
224
324
  2012-08-20 Michael Granger <ged@FaerieMUD.org>
@@ -236,7 +336,7 @@
236
336
  Fix gem binary invocation.
237
337
  [e113c95b9f39]
238
338
 
239
- * lib/laika/symphony.rb, lib/laika/symphony/task.rb:
339
+ * lib/laika/groundcontrol.rb, lib/laika/groundcontrol/task.rb:
240
340
  Documentation update/fixes
241
341
  [e169ebcecff7]
242
342
 
@@ -246,7 +346,7 @@
246
346
  Bump laika-base dependency
247
347
  [a66a334650d2]
248
348
 
249
- * lib/laika/symphony/tasks/sshscript.rb:
349
+ * lib/laika/groundcontrol/tasks/sshscript.rb:
250
350
  Turn off ssh protocol debugging in sshscript task
251
351
  [a7a23ebb2927]
252
352
 
@@ -256,7 +356,7 @@
256
356
  README fix
257
357
  [20aae4ccec08]
258
358
 
259
- * lib/laika/symphony/tasks/ssh.rb:
359
+ * lib/laika/groundcontrol/tasks/ssh.rb:
260
360
  Small fixes for ssh task:
261
361
 
262
362
  - Use features
@@ -266,11 +366,11 @@
266
366
 
267
367
  2012-08-16 Michael Granger <ged@FaerieMUD.org>
268
368
 
269
- * lib/laika/symphony/queue.rb, lib/laika/symphony/worker.rb:
369
+ * lib/laika/groundcontrol/queue.rb, lib/laika/groundcontrol/worker.rb:
270
370
  Logging tweaks to Queues and Workers
271
371
  [07abd8d84699]
272
372
 
273
- * lib/laika/symphony/tasks/sshscript.rb:
373
+ * lib/laika/groundcontrol/tasks/sshscript.rb:
274
374
  Write sshscripts to local /tmp instead of (possibly network) homedir
275
375
  [02c3cb736d43]
276
376
 
@@ -278,8 +378,8 @@
278
378
  Fix select() to not poll in gcworkerd
279
379
  [081f8b6c55cc]
280
380
 
281
- * .rvm.gems, bin/gcworkerd, spec/laika/symphony/queue_spec.rb,
282
- spec/laika/symphony/task_spec.rb:
381
+ * .rvm.gems, bin/gcworkerd, spec/laika/groundcontrol/queue_spec.rb,
382
+ spec/laika/groundcontrol/task_spec.rb:
283
383
  Convert specs to use the update setup_test_database().
284
384
  [bcb8893fbd6a]
285
385
 
@@ -287,26 +387,26 @@
287
387
  Updating dependencies.
288
388
  [a230af71e731]
289
389
 
290
- * lib/laika/symphony/job.rb,
291
- spec/laika/symphony/job_spec.rb:
390
+ * lib/laika/groundcontrol/job.rb,
391
+ spec/laika/groundcontrol/job_spec.rb:
292
392
  Explicitly serialize Job#task_options instead of relying on the
293
393
  flaky serialization plugin.
294
394
  [54c014ed337b]
295
395
 
296
- * lib/laika/symphony/worker.rb:
297
- Refactor the child part of Symphony::Worker.start into methods
396
+ * lib/laika/groundcontrol/worker.rb:
397
+ Refactor the child part of GroundControl::Worker.start into methods
298
398
  [89621596bf88]
299
399
 
300
400
  2012-08-15 Michael Granger <ged@FaerieMUD.org>
301
401
 
302
- * experiments/producer-sketch.rb, lib/laika/symphony.rb,
303
- lib/laika/symphony/job.rb, lib/laika/symphony/queue.rb,
304
- lib/laika/symphony/task.rb,
305
- lib/laika/symphony/tasks/pinger.rb,
306
- lib/laika/symphony/tasks/ssh.rb,
307
- lib/laika/symphony/tasks/sshscript.rb,
308
- spec/laika/symphony/queue_spec.rb,
309
- spec/laika/symphony/task_spec.rb:
402
+ * experiments/producer-sketch.rb, lib/laika/groundcontrol.rb,
403
+ lib/laika/groundcontrol/job.rb, lib/laika/groundcontrol/queue.rb,
404
+ lib/laika/groundcontrol/task.rb,
405
+ lib/laika/groundcontrol/tasks/pinger.rb,
406
+ lib/laika/groundcontrol/tasks/ssh.rb,
407
+ lib/laika/groundcontrol/tasks/sshscript.rb,
408
+ spec/laika/groundcontrol/queue_spec.rb,
409
+ spec/laika/groundcontrol/task_spec.rb:
310
410
  More work on the Job and Task classes.
311
411
 
312
412
  - Simplified job/task arguments to always be a hash of options,
@@ -319,24 +419,24 @@
319
419
 
320
420
  2012-08-15 Mahlon E. Smith <mahlon@laika.com>
321
421
 
322
- * bin/gcworkerd, lib/laika/symphony/job.rb,
323
- lib/laika/symphony/task.rb,
324
- lib/laika/symphony/tasks/pinger.rb,
325
- lib/laika/symphony/tasks/ssh.rb:
422
+ * bin/gcworkerd, lib/laika/groundcontrol/job.rb,
423
+ lib/laika/groundcontrol/task.rb,
424
+ lib/laika/groundcontrol/tasks/pinger.rb,
425
+ lib/laika/groundcontrol/tasks/ssh.rb:
326
426
  Checkpoint of yesterday's work.
327
427
  [b46ef27c763e]
328
428
 
329
429
  2012-08-13 Michael Granger <ged@FaerieMUD.org>
330
430
 
331
- * lib/laika/symphony/tasks/sshscript.rb:
431
+ * lib/laika/groundcontrol/tasks/sshscript.rb:
332
432
  Whitespace fixes
333
433
  [c08e4416dfd7]
334
434
 
335
435
  2012-08-07 Michael Granger <ged@FaerieMUD.org>
336
436
 
337
- * .hgignore, .rvm.gems, Rakefile, lib/laika/symphony/task.rb,
338
- spec/laika/symphony/task_spec.rb,
339
- spec/lib/symphonyhelpers.rb:
437
+ * .hgignore, .rvm.gems, Rakefile, lib/laika/groundcontrol/task.rb,
438
+ spec/laika/groundcontrol/task_spec.rb,
439
+ spec/lib/groundcontrolhelpers.rb:
340
440
  Add a spec to cover Task#on_error.
341
441
  [cfa2126c2879]
342
442
 
@@ -344,12 +444,12 @@
344
444
 
345
445
  * .hgignore, README.rdoc, Rakefile, bin/gcworkerd, experiments
346
446
  /producer-sketch.rb, experiments/test_script.sh,
347
- lib/laika/symphony/job.rb, lib/laika/symphony/queue.rb,
348
- lib/laika/symphony/task.rb,
349
- lib/laika/symphony/tasks/pinger.rb,
350
- lib/laika/symphony/tasks/ssh.rb,
351
- lib/laika/symphony/tasks/sshscript.rb,
352
- lib/laika/symphony/worker.rb:
447
+ lib/laika/groundcontrol/job.rb, lib/laika/groundcontrol/queue.rb,
448
+ lib/laika/groundcontrol/task.rb,
449
+ lib/laika/groundcontrol/tasks/pinger.rb,
450
+ lib/laika/groundcontrol/tasks/ssh.rb,
451
+ lib/laika/groundcontrol/tasks/sshscript.rb,
452
+ lib/laika/groundcontrol/worker.rb:
353
453
  Documentation and consistency updates.
354
454
 
355
455
  - Wrote initial API docs for Task, Worker, Job, and Queue.
@@ -366,10 +466,10 @@
366
466
 
367
467
  2012-08-02 Michael Granger <ged@FaerieMUD.org>
368
468
 
369
- * .rvm.gems, Manifest.txt, Rakefile, lib/laika/symphony/job.rb,
370
- lib/laika/symphony/queue.rb,
371
- lib/laika/symphony/tasks/sshscript.rb,
372
- lib/laika/symphony/worker.rb:
469
+ * .rvm.gems, Manifest.txt, Rakefile, lib/laika/groundcontrol/job.rb,
470
+ lib/laika/groundcontrol/queue.rb,
471
+ lib/laika/groundcontrol/tasks/sshscript.rb,
472
+ lib/laika/groundcontrol/worker.rb:
373
473
  Finish up the initial implementation of the ssh-based task classes.
374
474
  [5d9192bcfb71]
375
475
 
@@ -381,11 +481,11 @@
381
481
  Update the producer experiment to use the ssh-script task
382
482
  [80a0d6635300]
383
483
 
384
- * lib/laika/symphony/tasks/ssh.rb:
484
+ * lib/laika/groundcontrol/tasks/ssh.rb:
385
485
  Use Ruby1.9 spawn instead of Open3 for the SSH task's pipe
386
486
  [d6ab8ee0d6cc]
387
487
 
388
- * lib/laika/symphony/tasks/pinger.rb:
488
+ * lib/laika/groundcontrol/tasks/pinger.rb:
389
489
  Fix require in Pinger task
390
490
  [dd2170ed86d3]
391
491
 
@@ -399,22 +499,22 @@
399
499
 
400
500
  2012-08-02 Mahlon E. Smith <mahlon@laika.com>
401
501
 
402
- * experiments/producer-sketch.rb, lib/laika/symphony/queue.rb,
403
- lib/laika/symphony/tasks/pinger.rb,
404
- lib/laika/symphony/tasks/ssh.rb,
405
- lib/laika/symphony/tasks/sshscript.rb:
406
- Checkpoint commit of ssh Symphony tasks.
502
+ * experiments/producer-sketch.rb, lib/laika/groundcontrol/queue.rb,
503
+ lib/laika/groundcontrol/tasks/pinger.rb,
504
+ lib/laika/groundcontrol/tasks/ssh.rb,
505
+ lib/laika/groundcontrol/tasks/sshscript.rb:
506
+ Checkpoint commit of ssh GroundControl tasks.
407
507
  [dff259b79441]
408
508
 
409
509
  2012-07-31 Mahlon E. Smith <mahlon@laika.com>
410
510
 
411
511
  * bin/gcworkerd, experiments/producer-sketch.rb,
412
- lib/laika/symphony/job.rb, lib/laika/symphony/queue.rb,
413
- lib/laika/symphony/task.rb,
414
- lib/laika/symphony/tasks/pinger.rb,
415
- lib/laika/symphony/worker.rb,
416
- spec/laika/symphony/job_spec.rb,
417
- spec/laika/symphony/task_spec.rb:
512
+ lib/laika/groundcontrol/job.rb, lib/laika/groundcontrol/queue.rb,
513
+ lib/laika/groundcontrol/task.rb,
514
+ lib/laika/groundcontrol/tasks/pinger.rb,
515
+ lib/laika/groundcontrol/worker.rb,
516
+ spec/laika/groundcontrol/job_spec.rb,
517
+ spec/laika/groundcontrol/task_spec.rb:
418
518
  Small, misc updates:
419
519
 
420
520
  - Small whitespace and comment fixes.
@@ -429,42 +529,42 @@
429
529
 
430
530
  2012-07-30 Michael Granger <ged@FaerieMUD.org>
431
531
 
432
- * bin/gcworkerd, lib/laika/symphony/worker.rb:
532
+ * bin/gcworkerd, lib/laika/groundcontrol/worker.rb:
433
533
  Remove spammy debugging; set application name
434
534
  [90b8cd19faa7]
435
535
 
436
- * bin/gcworkerd, lib/laika/symphony/worker.rb:
536
+ * bin/gcworkerd, lib/laika/groundcontrol/worker.rb:
437
537
  Fix signal-handling in gcworkerd
438
538
  [34509c739e1b]
439
539
 
440
- * .rvm.gems, bin/gcworkerd, lib/laika/symphony.rb,
441
- lib/laika/symphony/job.rb, lib/laika/symphony/queue.rb,
442
- lib/laika/symphony/task.rb,
443
- lib/laika/symphony/tasks/pinger.rb,
444
- lib/laika/symphony/worker.rb,
445
- spec/laika/symphony/job_spec.rb,
446
- spec/laika/symphony/task_spec.rb:
540
+ * .rvm.gems, bin/gcworkerd, lib/laika/groundcontrol.rb,
541
+ lib/laika/groundcontrol/job.rb, lib/laika/groundcontrol/queue.rb,
542
+ lib/laika/groundcontrol/task.rb,
543
+ lib/laika/groundcontrol/tasks/pinger.rb,
544
+ lib/laika/groundcontrol/worker.rb,
545
+ spec/laika/groundcontrol/job_spec.rb,
546
+ spec/laika/groundcontrol/task_spec.rb:
447
547
  Adding first whack at gcworkerd and Task class
448
548
  [3ea444e5997d]
449
549
 
450
550
  2012-07-27 Michael Granger <ged@FaerieMUD.org>
451
551
 
452
552
  * .rvm.gems, Rakefile, bin/gcworkerd, experiments/consumer-sketch.rb,
453
- experiments/producer-sketch.rb, lib/laika/symphony.rb,
454
- lib/laika/symphony/job.rb, lib/laika/symphony/queue.rb,
455
- lib/laika/symphony/task.rb,
456
- lib/laika/symphony/tasks/pinger.rb,
457
- spec/laika/symphony/job_spec.rb,
458
- spec/laika/symphony/queue_spec.rb,
459
- spec/laika/symphony/task_spec.rb:
553
+ experiments/producer-sketch.rb, lib/laika/groundcontrol.rb,
554
+ lib/laika/groundcontrol/job.rb, lib/laika/groundcontrol/queue.rb,
555
+ lib/laika/groundcontrol/task.rb,
556
+ lib/laika/groundcontrol/tasks/pinger.rb,
557
+ spec/laika/groundcontrol/job_spec.rb,
558
+ spec/laika/groundcontrol/queue_spec.rb,
559
+ spec/laika/groundcontrol/task_spec.rb:
460
560
  Snapshot of Thursday's work.
461
561
  [e8da1957a10d]
462
562
 
463
563
  2012-07-26 Michael Granger <ged@FaerieMUD.org>
464
564
 
465
565
  * .rvm.gems, Rakefile, experiments/consumer-sketch.rb, experiments
466
- /producer-sketch.rb, lib/laika/symphony/job.rb,
467
- lib/laika/symphony/queue.rb:
566
+ /producer-sketch.rb, lib/laika/groundcontrol/job.rb,
567
+ lib/laika/groundcontrol/queue.rb:
468
568
  Fix queueing logic and update the experiments
469
569
  [7a3609d96123]
470
570
 
@@ -473,19 +573,19 @@
473
573
  * .hgignore, .rvm.gems, .tm_properties, Manifest.txt,
474
574
  experiments/.foreman, experiments/Procfile, experiments/consumer-
475
575
  sketch.rb, experiments/producer-sketch.rb, experiments/sketch.rb,
476
- lib/laika/symphony.rb, lib/laika/symphony/job.rb,
477
- lib/laika/symphony/queue.rb,
478
- spec/laika/symphony/job_spec.rb,
479
- spec/laika/symphony/queue_spec.rb:
576
+ lib/laika/groundcontrol.rb, lib/laika/groundcontrol/job.rb,
577
+ lib/laika/groundcontrol/queue.rb,
578
+ spec/laika/groundcontrol/job_spec.rb,
579
+ spec/laika/groundcontrol/queue_spec.rb:
480
580
  Checkpoint commit of afternoon's work (pair: mhix)
481
581
  [501304e7ae7b]
482
582
 
483
- * experiments/sketch.rb, lib/laika/symphony.rb,
484
- lib/laika/symphony/job.rb, lib/laika/symphony/queue.rb,
485
- spec/laika/symphony/job_spec.rb,
486
- spec/laika/symphony_spec.rb,
487
- spec/lib/symphonyconstants.rb,
488
- spec/lib/symphonyhelpers.rb:
583
+ * experiments/sketch.rb, lib/laika/groundcontrol.rb,
584
+ lib/laika/groundcontrol/job.rb, lib/laika/groundcontrol/queue.rb,
585
+ spec/laika/groundcontrol/job_spec.rb,
586
+ spec/laika/groundcontrol_spec.rb,
587
+ spec/lib/groundcontrolconstants.rb,
588
+ spec/lib/groundcontrolhelpers.rb:
489
589
  Checkpoint commit of morning's work (pair: mhix)
490
590
  [8cea2906f4fa]
491
591
 
@@ -500,9 +600,9 @@
500
600
  2012-07-24 Michael Granger <ged@FaerieMUD.org>
501
601
 
502
602
  * .autotest, .hgignore, .irbrc, .pryrc, History.rdoc, Manifest.txt,
503
- README.rdoc, Rakefile, bin/symphony,
504
- lib/laika/symphony.rb, spec/laika/symphony_spec.rb,
505
- spec/lib/symphonyconstants.rb,
506
- spec/lib/symphonyhelpers.rb:
603
+ README.rdoc, Rakefile, bin/groundcontrol,
604
+ lib/laika/groundcontrol.rb, spec/laika/groundcontrol_spec.rb,
605
+ spec/lib/groundcontrolconstants.rb,
606
+ spec/lib/groundcontrolhelpers.rb:
507
607
  Initial project boilerplate
508
608
  [99fbce8884cd]
data/History.rdoc CHANGED
@@ -1,3 +1,12 @@
1
+ == v0.4.0 [2014-03-28] Mahlon E. Smith <mahlon@martini.nu>
2
+
3
+ Enhancement:
4
+
5
+ Add an optional (disabled by default) timeout for the signal
6
+ handling wait_for_signals() method, for potential re-use in
7
+ alternate loop actions.
8
+
9
+
1
10
  == v0.3.0 [2014-03-28] Michael Granger <ged@FaerieMUD.org>
2
11
 
3
12
  Rewritten for AMQP and renamed to Symphony.
data/lib/symphony.rb CHANGED
@@ -12,10 +12,10 @@ module Symphony
12
12
  Configurability
13
13
 
14
14
  # Library version constant
15
- VERSION = '0.3.0'
15
+ VERSION = '0.4.0'
16
16
 
17
17
  # Version-control revision constant
18
- REVISION = %q$Revision: cf61ced7d585 $
18
+ REVISION = %q$Revision: 855c7801eaea $
19
19
 
20
20
 
21
21
  # The name of the environment variable to check for config file overrides
@@ -38,13 +38,15 @@ module Symphony::SignalHandling
38
38
 
39
39
 
40
40
  ### The body of the signal handler. Wait for at least one signal to arrive and
41
- ### handle it. This should be called inside a loop, either in its own thread or
42
- ### in another loop that doesn't block anywhere else.
43
- def wait_for_signals
41
+ ### handle it, or timeout and return if a +timeout+ integer is provided. This
42
+ ### should be called inside a loop, either in its own thread or in another loop
43
+ ### that doesn't block anywhere else. Returns true if a signal was handled, or
44
+ ### false if a timeout occurred.
45
+ def wait_for_signals( timeout=nil )
44
46
 
45
47
  # Wait on the selfpipe for signals
46
48
  self.log.debug " waiting for the selfpipe"
47
- fds = IO.select( [@selfpipe[:reader]] )
49
+ fds = IO.select( [@selfpipe[:reader]], [], [], timeout )
48
50
  begin
49
51
  rval = @selfpipe[:reader].read_nonblock( 11 )
50
52
  self.log.debug " read from the selfpipe: %p" % [ rval ]
@@ -58,6 +60,8 @@ module Symphony::SignalHandling
58
60
  self.log.debug " got a queued signal: %p" % [ sig ]
59
61
  self.handle_signal( sig )
60
62
  end
63
+
64
+ return fds ? true : false
61
65
  end
62
66
 
63
67
 
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.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Granger
@@ -31,7 +31,7 @@ cert_chain:
31
31
  c7ZKPJcWBv0sm81+FCZXNACn2f9jfF8OQinxVs0O052KbGuEQaaiGIYeuuwQE2q6
32
32
  ggcrPfcYeTwWlfZPu2LrBg==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-03-28 00:00:00.000000000 Z
34
+ date: 2014-03-29 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: pluggability
metadata.gz.sig CHANGED
Binary file