sidekiq-custom-queue 0.1.1 → 0.1.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.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/lib/sidekiq/custom_queue.rb +6 -0
- data/lib/sidekiq/custom_queue/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c99eb04db6598c9b32f16a6f76561e9f0c020e03
|
4
|
+
data.tar.gz: 54c5be83200168a196f2b3002dc859e97e85df7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b5486d1e662bd6800458f1509d215c669d3ab9056aee08582abc3849b710fbfe067773b9e8a6aba3ed88b35c5dd5d1dcaa5f9d3aad9c81251858d31a69f425e
|
7
|
+
data.tar.gz: 82e382372365bf1c44af827386a5fa4989df27e74d3964f36055707c11d1795e58ba0b5e77007d28936e3f2593107e9674002e3df27f8daff7267362eda1f065
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# Sidekiq Custom Queue
|
2
2
|
|
3
3
|
[](https://travis-ci.org/evansagge/sidekiq-custom-queue)
|
4
|
+
[](https://codeclimate.com/github/evansagge/sidekiq-custom-queue)
|
5
|
+
[](https://codeclimate.com/github/evansagge/sidekiq-custom-queue/coverage)
|
4
6
|
|
5
7
|
A Sidekiq plugin for allowing workers to define custom/dynamic queues based on the queued message.
|
6
8
|
|
@@ -26,7 +28,7 @@ Define a `custom_queue` class method in your worker class that can accept a sing
|
|
26
28
|
as described in https://github.com/mperham/sidekiq/wiki/Job-Format. Define how to use the whole message or parts of to create the name
|
27
29
|
for your custom queue:
|
28
30
|
|
29
|
-
```
|
31
|
+
```ruby
|
30
32
|
class WorkerWithCustomQueue
|
31
33
|
include Sidekiq::Worker
|
32
34
|
|
@@ -43,7 +45,7 @@ end
|
|
43
45
|
When you enqueue a job for this worker using `.perform_async` or `.perform_in`, it will generate the queue name from the `.custom_queue`
|
44
46
|
method and put that job in this queue:
|
45
47
|
|
46
|
-
```
|
48
|
+
```ruby
|
47
49
|
WorkerWithCustomQueue.perform_async('xyz', 1) # gets enqueued in the 'xyz_queue' instead of the default queue
|
48
50
|
```
|
49
51
|
|
@@ -58,7 +60,7 @@ which will create a git tag for the version, push git commits and tags, and push
|
|
58
60
|
|
59
61
|
## Contributing
|
60
62
|
|
61
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
63
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/evansagge/sidekiq-custom-queue.
|
62
64
|
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the
|
63
65
|
[Contributor Covenant](contributor-covenant.org) code of conduct.
|
64
66
|
|
data/lib/sidekiq/custom_queue.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-custom-queue
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Sagge
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|