sidekiq-batch 0.1.3 → 0.1.4

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: d41af0ded27d9233c6731d110bcc24d3c31a7e0f
4
- data.tar.gz: 2a6a63c2b2bd2159cc0456970d013819344c4670
3
+ metadata.gz: 39cabb4788c4c4941b2688f2fe575358287fd1c7
4
+ data.tar.gz: 1112290cc612ded396f27f0803bf33f48766734f
5
5
  SHA512:
6
- metadata.gz: c297e8094b0de083870db5850dee5eacccc59cb30aa85961fd71bff9076119092b7721cf1502b9d2556372337a5d4bdb3a1bc1c2d1630d8949d06b1bc6b4a03c
7
- data.tar.gz: 3c9d0365850379328118ed6a8f25b59a1e96c2fde7f4a7ae0ef8695024d589ba33de38d4344d321f480d2b41e74115fe8bae7d0c815efa8b55e2171f9bc5164b
6
+ metadata.gz: 45d60f50f7dc34e416d07ccca67c6d96821404514df5ee1aa1b8267d349cb4543655a73e069634f404409964a96805eaefc797fe205bff71297d76908f86ec89
7
+ data.tar.gz: b7f049fb8894c42e401fcfa655d6f98e79d1965bebbbd07720bc1240443caa23833bf62acd0a8abe2949ddced61d886cccb6746d4c8b83493bb3f8737fa7e854
data/lib/sidekiq/batch.rb CHANGED
@@ -174,7 +174,7 @@ module Sidekiq
174
174
  end
175
175
  end
176
176
 
177
- puts "processed process_successful_job"
177
+ Sidekiq.logger.info "done: #{jid} in batch #{bid}"
178
178
 
179
179
  enqueue_callbacks(:complete, bid) if pending.to_i == failed.to_i && children == complete
180
180
  enqueue_callbacks(:success, bid) if pending.to_i.zero? && children == success
@@ -9,7 +9,7 @@ module Sidekiq
9
9
  clazz, method = clazz.split("#") if (clazz.class == String && clazz.include?("#"))
10
10
  method = "on_#{event}" if method.nil?
11
11
  status = Sidekiq::Batch::Status.new(bid)
12
- clazz.constantize.new.send(method, status, opts) rescue nil
12
+ clazz.constantize.new.send(method, status, opts)
13
13
 
14
14
  send(event.to_sym, bid, status, parent_bid)
15
15
  end
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  class Batch
3
- VERSION = '0.1.3'.freeze
3
+ VERSION = '0.1.4'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-batch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Naglik
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-07 00:00:00.000000000 Z
11
+ date: 2017-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -122,7 +122,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  requirements: []
124
124
  rubyforge_project:
125
- rubygems_version: 2.5.2
125
+ rubygems_version: 2.6.11
126
126
  signing_key:
127
127
  specification_version: 4
128
128
  summary: Sidekiq Batch Jobs