sidekiq-throttled 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +6 -0
- data/lib/sidekiq/throttled/fetch.rb +1 -1
- data/lib/sidekiq/throttled/fetch/unit_of_work.rb +9 -1
- data/lib/sidekiq/throttled/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: e794a9bc8d61650e7d19521e6e54e71da5d5d4cf
|
4
|
+
data.tar.gz: 74e528fb268b1b7906cb53c65d1754210a42ab59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 585a307eec10d912126d35a492c4b83b41718530d89ade6bf470e8193b8f09b9cf667b1575bec2be920e7a94ed4bb121fe720ac73f5ebe183b120004aff4801b
|
7
|
+
data.tar.gz: 55d662289dc68f43afac8ee08567977d5909fb3894700b8eb0ed4d9b6239f705e9fdbd21cc1cc1bb93f59ec98f753532ac1b95c25e2c80ee77eccb0da102c4a4
|
data/CHANGES.md
CHANGED
@@ -26,7 +26,7 @@ module Sidekiq
|
|
26
26
|
end
|
27
27
|
|
28
28
|
# Callback that is called by `Sidekiq::Processor` when job was
|
29
|
-
# succeccfully processed. Most this is used by `ReliableFetch`
|
29
|
+
# succeccfully processed. Most likely this is used by `ReliableFetch`
|
30
30
|
# of Sidekiq Pro/Enterprise to remove job from running queue.
|
31
31
|
#
|
32
32
|
# @return [void]
|
@@ -54,6 +54,14 @@ module Sidekiq
|
|
54
54
|
Sidekiq.redis { |conn| conn.rpush(QueueName.expand(queue_name), job) }
|
55
55
|
end
|
56
56
|
|
57
|
+
# Tells whenever job should be pushed back to queue (throttled) or not.
|
58
|
+
#
|
59
|
+
# @see Sidekiq::Throttled.throttled?
|
60
|
+
# @return [Boolean]
|
61
|
+
def throttled?
|
62
|
+
Throttled.throttled? job
|
63
|
+
end
|
64
|
+
|
57
65
|
# Pushes job back to the head of the queue, so that job won't be tried
|
58
66
|
# immediately after it was requeued (in most cases).
|
59
67
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq-throttled
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey V Zapparov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-09-
|
11
|
+
date: 2016-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sidekiq
|