woodhouse 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/.travis.yml +5 -0
- data/Gemfile +7 -0
- data/Guardfile +4 -0
- data/MIT-LICENSE +21 -0
- data/PROGRESS-NOTES.txt +5 -0
- data/README.markdown +152 -0
- data/Rakefile +35 -0
- data/THOUGHTS +84 -0
- data/doc/example/script-woodhouse +9 -0
- data/doc/example/woodhouse-initializer.rb +12 -0
- data/lib/generators/woodhouse_generator.rb +38 -0
- data/lib/woodhouse/dispatcher.rb +37 -0
- data/lib/woodhouse/dispatchers/bunny_dispatcher.rb +48 -0
- data/lib/woodhouse/dispatchers/common_amqp_dispatcher.rb +28 -0
- data/lib/woodhouse/dispatchers/hot_bunnies_dispatcher.rb +48 -0
- data/lib/woodhouse/dispatchers/local_dispatcher.rb +13 -0
- data/lib/woodhouse/dispatchers/local_pool_dispatcher.rb +25 -0
- data/lib/woodhouse/dispatchers.rb +19 -0
- data/lib/woodhouse/extension.rb +24 -0
- data/lib/woodhouse/extensions/new_relic/instrumentation_middleware.rb +10 -0
- data/lib/woodhouse/extensions/new_relic.rb +23 -0
- data/lib/woodhouse/extensions/progress.rb +165 -0
- data/lib/woodhouse/job.rb +76 -0
- data/lib/woodhouse/job_execution.rb +60 -0
- data/lib/woodhouse/layout.rb +290 -0
- data/lib/woodhouse/layout_builder.rb +55 -0
- data/lib/woodhouse/layout_serializer.rb +82 -0
- data/lib/woodhouse/middleware/airbrake_exceptions.rb +12 -0
- data/lib/woodhouse/middleware/assign_logger.rb +10 -0
- data/lib/woodhouse/middleware/log_dispatch.rb +21 -0
- data/lib/woodhouse/middleware/log_jobs.rb +22 -0
- data/lib/woodhouse/middleware.rb +16 -0
- data/lib/woodhouse/middleware_stack.rb +35 -0
- data/lib/woodhouse/mixin_registry.rb +27 -0
- data/lib/woodhouse/node_configuration.rb +80 -0
- data/lib/woodhouse/process.rb +41 -0
- data/lib/woodhouse/queue_criteria.rb +52 -0
- data/lib/woodhouse/rails.rb +46 -0
- data/lib/woodhouse/rails2.rb +21 -0
- data/lib/woodhouse/registry.rb +12 -0
- data/lib/woodhouse/runner.rb +60 -0
- data/lib/woodhouse/runners/bunny_runner.rb +60 -0
- data/lib/woodhouse/runners/dummy_runner.rb +11 -0
- data/lib/woodhouse/runners/hot_bunnies_runner.rb +79 -0
- data/lib/woodhouse/runners.rb +16 -0
- data/lib/woodhouse/scheduler.rb +113 -0
- data/lib/woodhouse/server.rb +80 -0
- data/lib/woodhouse/trigger_set.rb +19 -0
- data/lib/woodhouse/version.rb +3 -0
- data/lib/woodhouse/worker.rb +86 -0
- data/lib/woodhouse.rb +99 -0
- data/spec/integration/bunny_worker_process_spec.rb +32 -0
- data/spec/layout_builder_spec.rb +55 -0
- data/spec/layout_spec.rb +143 -0
- data/spec/middleware_stack_spec.rb +56 -0
- data/spec/mixin_registry_spec.rb +15 -0
- data/spec/node_configuration_spec.rb +22 -0
- data/spec/progress_spec.rb +40 -0
- data/spec/queue_criteria_spec.rb +11 -0
- data/spec/scheduler_spec.rb +41 -0
- data/spec/server_spec.rb +72 -0
- data/spec/shared_contexts.rb +70 -0
- data/spec/worker_spec.rb +28 -0
- data/woodhouse.gemspec +37 -0
- metadata +285 -0
metadata
ADDED
@@ -0,0 +1,285 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: woodhouse
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Matthew Boeh
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-03-05 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: fiber18
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.0.1
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.0.1
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: celluloid
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: bunny
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 0.9.0.pre4
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.9.0.pre4
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: connection_pool
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: json
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: rspec
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 1.3.1
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 1.3.1
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: rake
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: guard
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: guard-rspec
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: mocha
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
description: ! "An AMQP-based background worker system for Ruby 1.8 and 1.9 designed
|
175
|
+
to make managing heterogenous tasks relatively easy.\n \n The use case for Woodhouse
|
176
|
+
is for reliable and sane performance in situations where jobs on a single queue
|
177
|
+
may vary significantly in length. The goal is to permit large numbers of quick jobs
|
178
|
+
to be serviced even when many slow jobs are in the queue. A secondary goal is to
|
179
|
+
provide a sane way for jobs on a given queue to be given special priority or dispatched
|
180
|
+
to a server more suited to them.\n \n Clients (i.e., your application) may be
|
181
|
+
using either Ruby 1.8 or 1.9 in any VM. Worker processes currently only support
|
182
|
+
JRuby in 1.8 or 1.9 mode efficiently. MRI 1.9 and Rubinius support is planned."
|
183
|
+
email:
|
184
|
+
- matt@crowdcompass.com
|
185
|
+
- matthew.boeh@gmail.com
|
186
|
+
executables: []
|
187
|
+
extensions: []
|
188
|
+
extra_rdoc_files: []
|
189
|
+
files:
|
190
|
+
- .gitignore
|
191
|
+
- .travis.yml
|
192
|
+
- Gemfile
|
193
|
+
- Guardfile
|
194
|
+
- MIT-LICENSE
|
195
|
+
- PROGRESS-NOTES.txt
|
196
|
+
- README.markdown
|
197
|
+
- Rakefile
|
198
|
+
- THOUGHTS
|
199
|
+
- doc/example/script-woodhouse
|
200
|
+
- doc/example/woodhouse-initializer.rb
|
201
|
+
- lib/generators/woodhouse_generator.rb
|
202
|
+
- lib/woodhouse.rb
|
203
|
+
- lib/woodhouse/dispatcher.rb
|
204
|
+
- lib/woodhouse/dispatchers.rb
|
205
|
+
- lib/woodhouse/dispatchers/bunny_dispatcher.rb
|
206
|
+
- lib/woodhouse/dispatchers/common_amqp_dispatcher.rb
|
207
|
+
- lib/woodhouse/dispatchers/hot_bunnies_dispatcher.rb
|
208
|
+
- lib/woodhouse/dispatchers/local_dispatcher.rb
|
209
|
+
- lib/woodhouse/dispatchers/local_pool_dispatcher.rb
|
210
|
+
- lib/woodhouse/extension.rb
|
211
|
+
- lib/woodhouse/extensions/new_relic.rb
|
212
|
+
- lib/woodhouse/extensions/new_relic/instrumentation_middleware.rb
|
213
|
+
- lib/woodhouse/extensions/progress.rb
|
214
|
+
- lib/woodhouse/job.rb
|
215
|
+
- lib/woodhouse/job_execution.rb
|
216
|
+
- lib/woodhouse/layout.rb
|
217
|
+
- lib/woodhouse/layout_builder.rb
|
218
|
+
- lib/woodhouse/layout_serializer.rb
|
219
|
+
- lib/woodhouse/middleware.rb
|
220
|
+
- lib/woodhouse/middleware/airbrake_exceptions.rb
|
221
|
+
- lib/woodhouse/middleware/assign_logger.rb
|
222
|
+
- lib/woodhouse/middleware/log_dispatch.rb
|
223
|
+
- lib/woodhouse/middleware/log_jobs.rb
|
224
|
+
- lib/woodhouse/middleware_stack.rb
|
225
|
+
- lib/woodhouse/mixin_registry.rb
|
226
|
+
- lib/woodhouse/node_configuration.rb
|
227
|
+
- lib/woodhouse/process.rb
|
228
|
+
- lib/woodhouse/queue_criteria.rb
|
229
|
+
- lib/woodhouse/rails.rb
|
230
|
+
- lib/woodhouse/rails2.rb
|
231
|
+
- lib/woodhouse/registry.rb
|
232
|
+
- lib/woodhouse/runner.rb
|
233
|
+
- lib/woodhouse/runners.rb
|
234
|
+
- lib/woodhouse/runners/bunny_runner.rb
|
235
|
+
- lib/woodhouse/runners/dummy_runner.rb
|
236
|
+
- lib/woodhouse/runners/hot_bunnies_runner.rb
|
237
|
+
- lib/woodhouse/scheduler.rb
|
238
|
+
- lib/woodhouse/server.rb
|
239
|
+
- lib/woodhouse/trigger_set.rb
|
240
|
+
- lib/woodhouse/version.rb
|
241
|
+
- lib/woodhouse/worker.rb
|
242
|
+
- spec/integration/bunny_worker_process_spec.rb
|
243
|
+
- spec/layout_builder_spec.rb
|
244
|
+
- spec/layout_spec.rb
|
245
|
+
- spec/middleware_stack_spec.rb
|
246
|
+
- spec/mixin_registry_spec.rb
|
247
|
+
- spec/node_configuration_spec.rb
|
248
|
+
- spec/progress_spec.rb
|
249
|
+
- spec/queue_criteria_spec.rb
|
250
|
+
- spec/scheduler_spec.rb
|
251
|
+
- spec/server_spec.rb
|
252
|
+
- spec/shared_contexts.rb
|
253
|
+
- spec/worker_spec.rb
|
254
|
+
- woodhouse.gemspec
|
255
|
+
homepage: http://github.com/mboeh/woodhouse
|
256
|
+
licenses: []
|
257
|
+
post_install_message:
|
258
|
+
rdoc_options: []
|
259
|
+
require_paths:
|
260
|
+
- lib
|
261
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
262
|
+
none: false
|
263
|
+
requirements:
|
264
|
+
- - ! '>='
|
265
|
+
- !ruby/object:Gem::Version
|
266
|
+
version: '0'
|
267
|
+
segments:
|
268
|
+
- 0
|
269
|
+
hash: -2528293190334644788
|
270
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
271
|
+
none: false
|
272
|
+
requirements:
|
273
|
+
- - ! '>='
|
274
|
+
- !ruby/object:Gem::Version
|
275
|
+
version: '0'
|
276
|
+
segments:
|
277
|
+
- 0
|
278
|
+
hash: -2528293190334644788
|
279
|
+
requirements: []
|
280
|
+
rubyforge_project: woodhouse
|
281
|
+
rubygems_version: 1.8.25
|
282
|
+
signing_key:
|
283
|
+
specification_version: 3
|
284
|
+
summary: An AMQP-based background worker system for Ruby 1.8 and 1.9
|
285
|
+
test_files: []
|