resque-dynamic-queues 0.5.0 → 0.5.1
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.
- data/README.md +12 -12
- data/lib/resque/plugins/dynamic_queues/version.rb +1 -1
- data/resque-dynamic-queues.gemspec +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -4,43 +4,43 @@ Authored against Resque 1.15, so it at least works with that - try running the t
|
|
4
4
|
|
5
5
|
Usage:
|
6
6
|
|
7
|
-
Start your workers with a QUEUE that can contain '
|
7
|
+
Start your workers with a QUEUE that can contain '\*' for zero-or more of any character, '!' to exclude the following pattern, or @key to look up the patterns from redis. Some examples help:
|
8
8
|
|
9
|
-
QUEUE=foo rake resque:work
|
9
|
+
QUEUE='foo' rake resque:work
|
10
10
|
|
11
11
|
Pulls jobs from the queue 'foo'
|
12
12
|
|
13
|
-
QUEUE
|
13
|
+
QUEUE='\*' rake resque:work
|
14
14
|
|
15
15
|
Pulls jobs from any queue
|
16
16
|
|
17
|
-
QUEUE
|
17
|
+
QUEUE='\*foo' rake resque:work
|
18
18
|
|
19
19
|
Pulls jobs from queues that end in foo
|
20
20
|
|
21
|
-
QUEUE
|
21
|
+
QUEUE='\*foo\*' rake resque:work
|
22
22
|
|
23
23
|
Pulls jobs from queues whose names contain foo
|
24
24
|
|
25
|
-
QUEUE
|
25
|
+
QUEUE='\*foo\*,!foobar' rake resque:work
|
26
26
|
|
27
27
|
Pulls jobs from queues whose names contain foo except the foobar queue
|
28
28
|
|
29
|
-
QUEUE
|
29
|
+
QUEUE='\*foo\*,!\*bar' rake resque:work
|
30
30
|
|
31
31
|
Pulls jobs from queues whose names contain foo except queues whose names end in bar
|
32
32
|
|
33
|
-
QUEUE
|
33
|
+
QUEUE='@key' rake resque:work
|
34
34
|
|
35
|
-
Pulls jobs from queue names stored in redis (use Resque.
|
35
|
+
Pulls jobs from queue names stored in redis (use Resque.set\_dynamic\_queue("key", ["queuename1", "queuename2"]) to set them)
|
36
36
|
|
37
|
-
QUEUE
|
37
|
+
QUEUE='@' rake resque:work
|
38
38
|
|
39
39
|
Pulls jobs from queue names stored in redis using the hostname of the worker
|
40
40
|
|
41
|
-
Resque.
|
41
|
+
Resque.set\_dynamic\_queue("key", ["\*foo\*", "!\*bar"])
|
42
42
|
|
43
|
-
QUEUE
|
43
|
+
QUEUE='@key' rake resque:work
|
44
44
|
|
45
45
|
Pulls jobs from queue names stored in redis, with wildcards/negations
|
46
46
|
|
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
|
|
20
20
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
21
|
s.require_paths = ["lib"]
|
22
22
|
|
23
|
-
s.add_dependency("resque", '~> 1.
|
23
|
+
s.add_dependency("resque", '~> 1.10')
|
24
24
|
s.add_development_dependency('rspec', '~> 2.5')
|
25
25
|
|
26
26
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: resque-dynamic-queues
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.5.
|
5
|
+
version: 0.5.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Matt Conway
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-28 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
requirements:
|
22
22
|
- - ~>
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: "1.
|
24
|
+
version: "1.10"
|
25
25
|
type: :runtime
|
26
26
|
version_requirements: *id001
|
27
27
|
- !ruby/object:Gem::Dependency
|