delayed_job_with_named_queues 2.0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/MIT-LICENSE +20 -0
- data/README.textile +248 -0
- data/contrib/delayed_job.monitrc +14 -0
- data/contrib/delayed_job_multiple.monitrc +23 -0
- data/generators/delayed_job/delayed_job_generator.rb +22 -0
- data/generators/delayed_job/templates/migration.rb +22 -0
- data/generators/delayed_job/templates/script +5 -0
- data/lib/delayed/backend/active_record.rb +93 -0
- data/lib/delayed/backend/base.rb +130 -0
- data/lib/delayed/backend/data_mapper.rb +125 -0
- data/lib/delayed/backend/mongo_mapper.rb +110 -0
- data/lib/delayed/command.rb +114 -0
- data/lib/delayed/message_sending.rb +53 -0
- data/lib/delayed/performable_method.rb +62 -0
- data/lib/delayed/railtie.rb +10 -0
- data/lib/delayed/recipes.rb +50 -0
- data/lib/delayed/tasks.rb +15 -0
- data/lib/delayed/worker.rb +178 -0
- data/lib/delayed_job.rb +14 -0
- data/rails/init.rb +5 -0
- data/recipes/delayed_job.rb +1 -0
- data/spec/backend/active_record_job_spec.rb +46 -0
- data/spec/backend/data_mapper_job_spec.rb +16 -0
- data/spec/backend/mongo_mapper_job_spec.rb +94 -0
- data/spec/backend/shared_backend_spec.rb +372 -0
- data/spec/delayed_method_spec.rb +46 -0
- data/spec/message_sending_spec.rb +89 -0
- data/spec/performable_method_spec.rb +53 -0
- data/spec/sample_jobs.rb +26 -0
- data/spec/setup/active_record.rb +34 -0
- data/spec/setup/data_mapper.rb +8 -0
- data/spec/setup/mongo_mapper.rb +17 -0
- data/spec/spec_helper.rb +28 -0
- data/spec/story_spec.rb +17 -0
- data/spec/worker_spec.rb +237 -0
- data/tasks/jobs.rake +1 -0
- metadata +327 -0
data/tasks/jobs.rake
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'delayed', 'tasks'))
|
metadata
ADDED
@@ -0,0 +1,327 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: delayed_job_with_named_queues
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 113
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
- 7
|
10
|
+
- 1
|
11
|
+
version: 2.0.7.1
|
12
|
+
platform: ruby
|
13
|
+
authors:
|
14
|
+
- Ray Walters
|
15
|
+
- Jeff Roush
|
16
|
+
autorequire:
|
17
|
+
bindir: bin
|
18
|
+
cert_chain: []
|
19
|
+
|
20
|
+
date: 2011-12-28 00:00:00 -08:00
|
21
|
+
default_executable:
|
22
|
+
dependencies:
|
23
|
+
- !ruby/object:Gem::Dependency
|
24
|
+
name: daemons
|
25
|
+
prerelease: false
|
26
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - "="
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
hash: 3
|
32
|
+
segments:
|
33
|
+
- 1
|
34
|
+
- 0
|
35
|
+
- 10
|
36
|
+
version: 1.0.10
|
37
|
+
type: :runtime
|
38
|
+
version_requirements: *id001
|
39
|
+
- !ruby/object:Gem::Dependency
|
40
|
+
name: activesupport
|
41
|
+
prerelease: false
|
42
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
hash: 3
|
48
|
+
segments:
|
49
|
+
- 2
|
50
|
+
- 0
|
51
|
+
version: "2.0"
|
52
|
+
type: :runtime
|
53
|
+
version_requirements: *id002
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: rspec
|
56
|
+
prerelease: false
|
57
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
hash: 15
|
63
|
+
segments:
|
64
|
+
- 1
|
65
|
+
- 0
|
66
|
+
version: "1.0"
|
67
|
+
type: :development
|
68
|
+
version_requirements: *id003
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
prerelease: false
|
72
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
hash: 3
|
78
|
+
segments:
|
79
|
+
- 0
|
80
|
+
version: "0"
|
81
|
+
type: :development
|
82
|
+
version_requirements: *id004
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rails
|
85
|
+
prerelease: false
|
86
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
88
|
+
requirements:
|
89
|
+
- - ~>
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
hash: 5
|
92
|
+
segments:
|
93
|
+
- 2
|
94
|
+
- 3
|
95
|
+
version: "2.3"
|
96
|
+
type: :development
|
97
|
+
version_requirements: *id005
|
98
|
+
- !ruby/object:Gem::Dependency
|
99
|
+
name: sqlite3
|
100
|
+
prerelease: false
|
101
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
102
|
+
none: false
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
hash: 3
|
107
|
+
segments:
|
108
|
+
- 0
|
109
|
+
version: "0"
|
110
|
+
type: :development
|
111
|
+
version_requirements: *id006
|
112
|
+
- !ruby/object:Gem::Dependency
|
113
|
+
name: mysql
|
114
|
+
prerelease: false
|
115
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
116
|
+
none: false
|
117
|
+
requirements:
|
118
|
+
- - ">="
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
hash: 3
|
121
|
+
segments:
|
122
|
+
- 0
|
123
|
+
version: "0"
|
124
|
+
type: :development
|
125
|
+
version_requirements: *id007
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: mongo_mapper
|
128
|
+
prerelease: false
|
129
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
130
|
+
none: false
|
131
|
+
requirements:
|
132
|
+
- - ~>
|
133
|
+
- !ruby/object:Gem::Version
|
134
|
+
hash: 63
|
135
|
+
segments:
|
136
|
+
- 0
|
137
|
+
- 8
|
138
|
+
- 0
|
139
|
+
version: 0.8.0
|
140
|
+
type: :development
|
141
|
+
version_requirements: *id008
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: dm-core
|
144
|
+
prerelease: false
|
145
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
hash: 3
|
151
|
+
segments:
|
152
|
+
- 0
|
153
|
+
version: "0"
|
154
|
+
type: :development
|
155
|
+
version_requirements: *id009
|
156
|
+
- !ruby/object:Gem::Dependency
|
157
|
+
name: dm-observer
|
158
|
+
prerelease: false
|
159
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
160
|
+
none: false
|
161
|
+
requirements:
|
162
|
+
- - ">="
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
hash: 3
|
165
|
+
segments:
|
166
|
+
- 0
|
167
|
+
version: "0"
|
168
|
+
type: :development
|
169
|
+
version_requirements: *id010
|
170
|
+
- !ruby/object:Gem::Dependency
|
171
|
+
name: dm-aggregates
|
172
|
+
prerelease: false
|
173
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
174
|
+
none: false
|
175
|
+
requirements:
|
176
|
+
- - ">="
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
hash: 3
|
179
|
+
segments:
|
180
|
+
- 0
|
181
|
+
version: "0"
|
182
|
+
type: :development
|
183
|
+
version_requirements: *id011
|
184
|
+
- !ruby/object:Gem::Dependency
|
185
|
+
name: dm-validations
|
186
|
+
prerelease: false
|
187
|
+
requirement: &id012 !ruby/object:Gem::Requirement
|
188
|
+
none: false
|
189
|
+
requirements:
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
hash: 3
|
193
|
+
segments:
|
194
|
+
- 0
|
195
|
+
version: "0"
|
196
|
+
type: :development
|
197
|
+
version_requirements: *id012
|
198
|
+
- !ruby/object:Gem::Dependency
|
199
|
+
name: do_sqlite3
|
200
|
+
prerelease: false
|
201
|
+
requirement: &id013 !ruby/object:Gem::Requirement
|
202
|
+
none: false
|
203
|
+
requirements:
|
204
|
+
- - ">="
|
205
|
+
- !ruby/object:Gem::Version
|
206
|
+
hash: 3
|
207
|
+
segments:
|
208
|
+
- 0
|
209
|
+
version: "0"
|
210
|
+
type: :development
|
211
|
+
version_requirements: *id013
|
212
|
+
- !ruby/object:Gem::Dependency
|
213
|
+
name: database_cleaner
|
214
|
+
prerelease: false
|
215
|
+
requirement: &id014 !ruby/object:Gem::Requirement
|
216
|
+
none: false
|
217
|
+
requirements:
|
218
|
+
- - ">="
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
hash: 3
|
221
|
+
segments:
|
222
|
+
- 0
|
223
|
+
version: "0"
|
224
|
+
type: :development
|
225
|
+
version_requirements: *id014
|
226
|
+
description: |-
|
227
|
+
Delayed_job (or DJ) encapsulates the common pattern of asynchronously executing longer tasks in the background. It is a direct extraction from Shopify where the job table is responsible for a multitude of core tasks.
|
228
|
+
|
229
|
+
This gem is backported from v3.0.0pre4 of collectiveidea's fork, to add named queues to v2.0.7 (http://github.com/ezpub/delayed_job).
|
230
|
+
email:
|
231
|
+
- rwalters@ezpublishing.com
|
232
|
+
- jroush@ezpublishing.com
|
233
|
+
executables: []
|
234
|
+
|
235
|
+
extensions: []
|
236
|
+
|
237
|
+
extra_rdoc_files:
|
238
|
+
- README.textile
|
239
|
+
files:
|
240
|
+
- contrib/delayed_job.monitrc
|
241
|
+
- contrib/delayed_job_multiple.monitrc
|
242
|
+
- lib/delayed/backend/active_record.rb
|
243
|
+
- lib/delayed/backend/base.rb
|
244
|
+
- lib/delayed/backend/data_mapper.rb
|
245
|
+
- lib/delayed/backend/mongo_mapper.rb
|
246
|
+
- lib/delayed/command.rb
|
247
|
+
- lib/delayed/message_sending.rb
|
248
|
+
- lib/delayed/performable_method.rb
|
249
|
+
- lib/delayed/railtie.rb
|
250
|
+
- lib/delayed/recipes.rb
|
251
|
+
- lib/delayed/tasks.rb
|
252
|
+
- lib/delayed/worker.rb
|
253
|
+
- lib/delayed_job.rb
|
254
|
+
- generators/delayed_job/delayed_job_generator.rb
|
255
|
+
- generators/delayed_job/templates/migration.rb
|
256
|
+
- generators/delayed_job/templates/script
|
257
|
+
- rails/init.rb
|
258
|
+
- recipes/delayed_job.rb
|
259
|
+
- spec/backend/active_record_job_spec.rb
|
260
|
+
- spec/backend/data_mapper_job_spec.rb
|
261
|
+
- spec/backend/mongo_mapper_job_spec.rb
|
262
|
+
- spec/backend/shared_backend_spec.rb
|
263
|
+
- spec/delayed_method_spec.rb
|
264
|
+
- spec/message_sending_spec.rb
|
265
|
+
- spec/performable_method_spec.rb
|
266
|
+
- spec/sample_jobs.rb
|
267
|
+
- spec/setup/active_record.rb
|
268
|
+
- spec/setup/data_mapper.rb
|
269
|
+
- spec/setup/mongo_mapper.rb
|
270
|
+
- spec/spec_helper.rb
|
271
|
+
- spec/story_spec.rb
|
272
|
+
- spec/worker_spec.rb
|
273
|
+
- tasks/jobs.rake
|
274
|
+
- MIT-LICENSE
|
275
|
+
- README.textile
|
276
|
+
has_rdoc: true
|
277
|
+
homepage: http://github.com/ezpub/delayed_job
|
278
|
+
licenses: []
|
279
|
+
|
280
|
+
post_install_message:
|
281
|
+
rdoc_options:
|
282
|
+
- --main
|
283
|
+
- README.textile
|
284
|
+
- --inline-source
|
285
|
+
- --line-numbers
|
286
|
+
require_paths:
|
287
|
+
- lib
|
288
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
289
|
+
none: false
|
290
|
+
requirements:
|
291
|
+
- - ">="
|
292
|
+
- !ruby/object:Gem::Version
|
293
|
+
hash: 3
|
294
|
+
segments:
|
295
|
+
- 0
|
296
|
+
version: "0"
|
297
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
298
|
+
none: false
|
299
|
+
requirements:
|
300
|
+
- - ">="
|
301
|
+
- !ruby/object:Gem::Version
|
302
|
+
hash: 3
|
303
|
+
segments:
|
304
|
+
- 0
|
305
|
+
version: "0"
|
306
|
+
requirements: []
|
307
|
+
|
308
|
+
rubyforge_project:
|
309
|
+
rubygems_version: 1.3.7
|
310
|
+
signing_key:
|
311
|
+
specification_version: 3
|
312
|
+
summary: Database-backed asynchronous priority queue system -- Extracted from Shopify
|
313
|
+
test_files:
|
314
|
+
- spec/backend/active_record_job_spec.rb
|
315
|
+
- spec/backend/data_mapper_job_spec.rb
|
316
|
+
- spec/backend/mongo_mapper_job_spec.rb
|
317
|
+
- spec/backend/shared_backend_spec.rb
|
318
|
+
- spec/delayed_method_spec.rb
|
319
|
+
- spec/message_sending_spec.rb
|
320
|
+
- spec/performable_method_spec.rb
|
321
|
+
- spec/sample_jobs.rb
|
322
|
+
- spec/setup/active_record.rb
|
323
|
+
- spec/setup/data_mapper.rb
|
324
|
+
- spec/setup/mongo_mapper.rb
|
325
|
+
- spec/spec_helper.rb
|
326
|
+
- spec/story_spec.rb
|
327
|
+
- spec/worker_spec.rb
|