sidekiq-dynamic-queues 0.5.1 → 0.5.2
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/CHANGELOG +6 -0
- data/README.md +10 -10
- data/lib/sidekiq/dynamic_queues/server/views/dynamicqueue.slim +1 -1
- data/lib/sidekiq/dynamic_queues/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
data/README.md
CHANGED
@@ -12,46 +12,46 @@ If creating a gem of your own that uses sidekiq-dynamic-queues, you may have to
|
|
12
12
|
|
13
13
|
Configure by setting Sidekiq.options[:fetch] = Sidekiq::DynamicQueues::Fetch
|
14
14
|
|
15
|
-
Start your workers with a
|
15
|
+
Start your workers with a queue that can contain '\*' (.star.) for zero-or more of any character, '!' (.not.) to exclude the following pattern, or @key (.at.key) to look up the patterns from redis. The version in parens is required to get around the sidekiq cli's restriction on queue names. Some examples help:
|
16
16
|
|
17
17
|
sidekiq -q foo
|
18
18
|
|
19
19
|
Pulls jobs from the queue 'foo'
|
20
20
|
|
21
|
-
sidekiq -q
|
21
|
+
sidekiq -q .star.
|
22
22
|
|
23
23
|
Pulls jobs from any queue
|
24
24
|
|
25
|
-
sidekiq -q
|
25
|
+
sidekiq -q .star.foo
|
26
26
|
|
27
27
|
Pulls jobs from queues that end in foo
|
28
28
|
|
29
|
-
sidekiq -q
|
29
|
+
sidekiq -q .star.foo.star.
|
30
30
|
|
31
31
|
Pulls jobs from queues whose names contain foo
|
32
32
|
|
33
|
-
sidekiq -q
|
33
|
+
sidekiq -q .star.foo.star. -q .not.foobar
|
34
34
|
|
35
35
|
Pulls jobs from queues whose names contain foo except the foobar queue
|
36
36
|
|
37
|
-
sidekiq -q
|
37
|
+
sidekiq -q .star.foo.star. -q .not..star.bar
|
38
38
|
|
39
39
|
Pulls jobs from queues whose names contain foo except queues whose names end in bar
|
40
40
|
|
41
|
-
|
41
|
+
sidekiq -q .at.key
|
42
42
|
|
43
43
|
Pulls jobs from queue names stored in redis (use Sidekiq::DynamicQueues::Attributes.set\_dynamic\_queue("key", ["queuename1", "queuename2"]) to set them)
|
44
44
|
|
45
|
-
sidekiq -q
|
45
|
+
sidekiq -q .star. -q .not..at.key
|
46
46
|
|
47
47
|
Pulls jobs from any queue except ones stored in redis
|
48
48
|
|
49
|
-
sidekiq -q
|
49
|
+
sidekiq -q .at.
|
50
50
|
|
51
51
|
Pulls jobs from queue names stored in redis using the hostname of the worker
|
52
52
|
|
53
53
|
Sidekiq::DynamicQueues::Attributes.set_dynamic_queue("key", ["*foo*", "!*bar"])
|
54
|
-
sidekiq -q
|
54
|
+
sidekiq -q .at.key
|
55
55
|
|
56
56
|
Pulls jobs from queue names stored in redis, with wildcards/negations
|
57
57
|
|
@@ -9,7 +9,7 @@ p class="intro"
|
|
9
9
|
workers will use if the key for that worker is empty. If both the key and
|
10
10
|
the fallback are empty, the worker defaults to processing '*'
|
11
11
|
|
12
|
-
form action="
|
12
|
+
form action="#{root_path}dynamicqueue" method="POST"
|
13
13
|
|
14
14
|
table class="queues table table-hover table-bordered table-striped table-white"
|
15
15
|
thead
|