resque-unique_in_queue 1.0.0 → 1.0.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.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/lib/resque/plugins/unique_in_queue.rb +2 -2
- data/lib/resque/unique_in_queue/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 335094b5e9384af59a3aa8b30aaa38e3e56bffba5b47f1269e5a75505e6ff691
|
4
|
+
data.tar.gz: fd7a30a866ab9c976810eba7f84df6abf9ee84cca696575ef7a9e83859289be7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80b71ff70784844a6ef2d468053549a9e944e2b46de1c87485381ba68c8cd50e6316de0a4e54db7132bcde56af7d59eb67d169861e739391711dbbaedd356a96
|
7
|
+
data.tar.gz: b78cab0a7c00089524edf5af3af2450d16a7038f086e3efe449b34a8472c61ab59bfe572f4a9e72c734fcc755481137bd720e9eb93c38db9574c8f6568011a32
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
Resque::UniqueInQueue is a resque plugin to add unique jobs to resque.
|
19
19
|
|
20
|
-
It is a re-write of [resque-loner](https://github.com/jayniz/resque-loner).
|
20
|
+
It is a re-write of [resque_solo](https://github.com/neighborland/resque_solo), which is a fork of [resque-loner](https://github.com/jayniz/resque-loner).
|
21
21
|
|
22
22
|
It requires resque 1.25 and works with ruby 2.0 and later.
|
23
23
|
|
@@ -35,7 +35,7 @@ gem 'resque-unique_in_queue'
|
|
35
35
|
|
36
36
|
```ruby
|
37
37
|
class UpdateCat
|
38
|
-
include Resque::Plugins::
|
38
|
+
include Resque::Plugins::UniqueInQueue
|
39
39
|
@queue = :cats
|
40
40
|
|
41
41
|
def self.perform(cat_id)
|
@@ -76,7 +76,7 @@ job more than once per minute, set `lock_after_execution_period = 60`.
|
|
76
76
|
|
77
77
|
```ruby
|
78
78
|
class UpdateCat
|
79
|
-
include Resque::Plugins::
|
79
|
+
include Resque::Plugins::UniqueInQueue
|
80
80
|
@queue = :cats
|
81
81
|
@lock_after_execution_period = 20
|
82
82
|
|
@@ -40,7 +40,7 @@ module Resque
|
|
40
40
|
# For example:
|
41
41
|
#
|
42
42
|
# class FooJob
|
43
|
-
# include Resque::Plugins::
|
43
|
+
# include Resque::Plugins::UniqueInQueue
|
44
44
|
# @ttl = 40
|
45
45
|
# end
|
46
46
|
def ttl
|
@@ -53,7 +53,7 @@ module Resque
|
|
53
53
|
# For example:
|
54
54
|
#
|
55
55
|
# class FooJob
|
56
|
-
# include Resque::Plugins::
|
56
|
+
# include Resque::Plugins::UniqueInQueue
|
57
57
|
# @lock_after_execution_period = 40
|
58
58
|
# end
|
59
59
|
def lock_after_execution_period
|