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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/ChangeLog +247 -147
- data/History.rdoc +9 -0
- data/lib/symphony.rb +2 -2
- data/lib/symphony/signal_handling.rb +8 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d010875d95ecf17ce0545379d8192f0af823d93a
|
|
4
|
+
data.tar.gz: 94e08919b08b5a95e68ddc8989de48419e7c9275
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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]
|
|
105
|
+
[7297d2999838]
|
|
6
106
|
|
|
7
107
|
2014-03-17 Mahlon E. Smith <mahlon@martini.nu>
|
|
8
108
|
|
|
9
|
-
* README.rdoc, USAGE.rdoc, lib/
|
|
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]
|
|
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/
|
|
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/
|
|
31
|
-
lib/
|
|
32
|
-
lib/
|
|
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/
|
|
136
|
+
* lib/groundcontrol/queue.rb:
|
|
37
137
|
Simplify the queue configuration
|
|
38
138
|
[506e35c44fb7]
|
|
39
139
|
|
|
40
|
-
* lib/
|
|
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/
|
|
46
|
-
lib/
|
|
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/
|
|
51
|
-
lib/
|
|
52
|
-
lib/
|
|
53
|
-
lib/
|
|
54
|
-
lib/
|
|
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/
|
|
61
|
-
lib/
|
|
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/
|
|
70
|
-
lib/
|
|
71
|
-
lib/
|
|
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/
|
|
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/
|
|
89
|
-
lib/
|
|
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/
|
|
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/
|
|
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/
|
|
105
|
-
lib/
|
|
106
|
-
spec/
|
|
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/
|
|
112
|
-
lib/
|
|
113
|
-
lib/
|
|
114
|
-
lib/
|
|
115
|
-
spec/
|
|
116
|
-
spec/
|
|
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/
|
|
124
|
-
lib/
|
|
125
|
-
spec/
|
|
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/
|
|
136
|
-
lib/
|
|
137
|
-
lib/
|
|
138
|
-
lib/
|
|
139
|
-
lib/
|
|
140
|
-
lib/
|
|
141
|
-
lib/laika/
|
|
142
|
-
lib/laika/
|
|
143
|
-
lib/laika/
|
|
144
|
-
lib/laika/
|
|
145
|
-
lib/laika/
|
|
146
|
-
lib/laika/
|
|
147
|
-
spec/
|
|
148
|
-
spec/
|
|
149
|
-
spec/laika/
|
|
150
|
-
spec/laika/
|
|
151
|
-
spec/laika/
|
|
152
|
-
spec/laika/
|
|
153
|
-
spec/lib/
|
|
154
|
-
spec/lib/
|
|
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/
|
|
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/
|
|
197
|
-
spec/laika/
|
|
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/
|
|
202
|
-
lib/laika/
|
|
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/
|
|
221
|
-
Remove the bin/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
282
|
-
spec/laika/
|
|
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/
|
|
291
|
-
spec/laika/
|
|
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/
|
|
297
|
-
Refactor the child part of
|
|
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/
|
|
303
|
-
lib/laika/
|
|
304
|
-
lib/laika/
|
|
305
|
-
lib/laika/
|
|
306
|
-
lib/laika/
|
|
307
|
-
lib/laika/
|
|
308
|
-
spec/laika/
|
|
309
|
-
spec/laika/
|
|
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/
|
|
323
|
-
lib/laika/
|
|
324
|
-
lib/laika/
|
|
325
|
-
lib/laika/
|
|
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/
|
|
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/
|
|
338
|
-
spec/laika/
|
|
339
|
-
spec/lib/
|
|
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/
|
|
348
|
-
lib/laika/
|
|
349
|
-
lib/laika/
|
|
350
|
-
lib/laika/
|
|
351
|
-
lib/laika/
|
|
352
|
-
lib/laika/
|
|
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/
|
|
370
|
-
lib/laika/
|
|
371
|
-
lib/laika/
|
|
372
|
-
lib/laika/
|
|
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/
|
|
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/
|
|
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/
|
|
403
|
-
lib/laika/
|
|
404
|
-
lib/laika/
|
|
405
|
-
lib/laika/
|
|
406
|
-
Checkpoint commit of ssh
|
|
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/
|
|
413
|
-
lib/laika/
|
|
414
|
-
lib/laika/
|
|
415
|
-
lib/laika/
|
|
416
|
-
spec/laika/
|
|
417
|
-
spec/laika/
|
|
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/
|
|
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/
|
|
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/
|
|
441
|
-
lib/laika/
|
|
442
|
-
lib/laika/
|
|
443
|
-
lib/laika/
|
|
444
|
-
lib/laika/
|
|
445
|
-
spec/laika/
|
|
446
|
-
spec/laika/
|
|
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/
|
|
454
|
-
lib/laika/
|
|
455
|
-
lib/laika/
|
|
456
|
-
lib/laika/
|
|
457
|
-
spec/laika/
|
|
458
|
-
spec/laika/
|
|
459
|
-
spec/laika/
|
|
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/
|
|
467
|
-
lib/laika/
|
|
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/
|
|
477
|
-
lib/laika/
|
|
478
|
-
spec/laika/
|
|
479
|
-
spec/laika/
|
|
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/
|
|
484
|
-
lib/laika/
|
|
485
|
-
spec/laika/
|
|
486
|
-
spec/laika/
|
|
487
|
-
spec/lib/
|
|
488
|
-
spec/lib/
|
|
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/
|
|
504
|
-
lib/laika/
|
|
505
|
-
spec/lib/
|
|
506
|
-
spec/lib/
|
|
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.
|
|
15
|
+
VERSION = '0.4.0'
|
|
16
16
|
|
|
17
17
|
# Version-control revision constant
|
|
18
|
-
REVISION = %q$Revision:
|
|
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
|
|
42
|
-
###
|
|
43
|
-
|
|
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.
|
|
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-
|
|
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
|