sidekiq-throttled 0.6.3 → 0.6.4
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 -9
- data/lib/sidekiq/throttled/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6aedce59e6d54d8e5b87efee69f613db617d7549
|
4
|
+
data.tar.gz: 6e8ec470ea953aa7fd43f0a4962dc1a1590538c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5b30e4cc7703c5d40882b43efc78da6cc514af7134f9e22909ee30018778012d4ac193f53cb6f71fa0babc0800bf5601aa93011e0390caed04dfa11e6fe0d32
|
7
|
+
data.tar.gz: d94c1159801231e63725d7d55cdd92587248bc1f1bda4d8c6f089c3e1abc0d1341375740263f33e68037e9af08f7e92b364c2b545ca263cb9a19a82be8868568
|
data/CHANGES.md
CHANGED
@@ -54,14 +54,6 @@ 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
|
-
|
65
57
|
# Pushes job back to the head of the queue, so that job won't be tried
|
66
58
|
# immediately after it was requeued (in most cases).
|
67
59
|
#
|
@@ -69,9 +61,17 @@ module Sidekiq
|
|
69
61
|
# Sidekiq performs upon `Sidekiq::Worker.perform_async` call.
|
70
62
|
#
|
71
63
|
# @return [void]
|
72
|
-
def
|
64
|
+
def requeue_throttled
|
73
65
|
Sidekiq.redis { |conn| conn.lpush(QueueName.expand(queue_name), job) }
|
74
66
|
end
|
67
|
+
|
68
|
+
# Tells whenever job should be pushed back to queue (throttled) or not.
|
69
|
+
#
|
70
|
+
# @see Sidekiq::Throttled.throttled?
|
71
|
+
# @return [Boolean]
|
72
|
+
def throttled?
|
73
|
+
Throttled.throttled? job
|
74
|
+
end
|
75
75
|
end
|
76
76
|
end
|
77
77
|
end
|