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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c53ede8cde6f7b04ee9b0ae343f988d564a62944
4
- data.tar.gz: 22864e990a6ffeaf86ac5ef169072b00d054ef5f
3
+ metadata.gz: 2b0d46713522d1527981fbe78e72fa9e4f3af826
4
+ data.tar.gz: 68a0c21e797fa758813cf0888b74db210e4dec21
5
5
  SHA512:
6
- metadata.gz: ea56db9c75826ec9fd2cb990ef9cd553049a5200464f3722954a53f0678f353b88ab2477be3ce9c031dc4951460eac4a34618e7dc41c9b6d306887ba2b4460a0
7
- data.tar.gz: 678f49766262a89976638afae0a47c91e1361b2aeaf80a82a5e0f129019e9f6f76c80b6f8f378774adbc65780eaa8b7f6249132a5a4e733d329c6b1835534757
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
- if batch && not(passthrough)
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 batch && passthrough
21
- msg['args'].shift
22
- end
24
+ msg['args'].shift if passthrough
23
25
  yield
24
26
  end
25
27
  end
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Grouping
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-grouping
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Sokolov