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 CHANGED
@@ -1,3 +1,9 @@
1
+ 0.5.2
2
+ -----
3
+
4
+ allow mounting web app in sub-path <8614064> [Matt Conway]
5
+ update readme for cli workaround <cdb7571> [Matt Conway]
6
+
1
7
  0.5.1
2
8
  -----
3
9
 
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 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:
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 *foo
25
+ sidekiq -q .star.foo
26
26
 
27
27
  Pulls jobs from queues that end in foo
28
28
 
29
- sidekiq -q *foo*
29
+ sidekiq -q .star.foo.star.
30
30
 
31
31
  Pulls jobs from queues whose names contain foo
32
32
 
33
- sidekiq -q *foo* -q !foobar
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 *foo* -q !*bar
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
- QUEUE='@key' sidekiq -q @key
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 * -q !@key
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 @key
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="/dynamicqueue" method="POST"
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
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module DynamicQueues
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sidekiq-dynamic-queues
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.1
5
+ version: 0.5.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Matt Conway