sidekiq-grouping 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sidekiq/grouping/middleware.rb +6 -4
- data/lib/sidekiq/grouping/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: 2b0d46713522d1527981fbe78e72fa9e4f3af826
|
4
|
+
data.tar.gz: 68a0c21e797fa758813cf0888b74db210e4dec21
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6386f4faae228d50fb5ad9245b9de5c5c4e852367916c203c62ef52c68a5942b3036c009da8273bd86d044d6574c2f8a2f3e1285fbfdae85069c26cbc99e994
|
7
|
+
data.tar.gz: 435da86a3227c7f5ec0ad89fdc3705fd3be1f67620cd3aeee69cc9b520aec858dad2f1490bc276519af7e4e55a8b65c7c92882d86e6807030db1f08345faeaf1
|
@@ -14,12 +14,14 @@ module Sidekiq
|
|
14
14
|
msg['args'].is_a?(Array) &&
|
15
15
|
msg['args'].try(:first) == true
|
16
16
|
|
17
|
-
|
17
|
+
retrying = msg["failed_at"].present?
|
18
|
+
|
19
|
+
return yield unless batch
|
20
|
+
|
21
|
+
if !(passthrough || retrying)
|
18
22
|
add_to_batch(worker_class, queue, msg, redis_pool)
|
19
23
|
else
|
20
|
-
if
|
21
|
-
msg['args'].shift
|
22
|
-
end
|
24
|
+
msg['args'].shift if passthrough
|
23
25
|
yield
|
24
26
|
end
|
25
27
|
end
|