sidekiq_bulk_job 0.1.6 → 0.1.7

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
- SHA1:
3
- metadata.gz: b24f02dbcf87a2fe41c7b73c64c92c698b8c6411
4
- data.tar.gz: ddc7ec50e7055fe406c286309f599c07b4940390
2
+ SHA256:
3
+ metadata.gz: a9d124e3177531ad4c8857a5ff988f9ab74c70dc14e299f62d9eefe7877e9803
4
+ data.tar.gz: 6d6827ec935be22611ba3be1c8a3996ac1fad81fc10647c67ae203005ebe7ef4
5
5
  SHA512:
6
- metadata.gz: 647ed0d297ed21e29729520a9f21a8dd6e7d54467b8ff7dcdac957f8cb4d48b0d879c71de33db9e51c152daa6d2a2ad24fa8a4491e7ee892b0e0f3eb791ac3d3
7
- data.tar.gz: d401dd44b727304ca2e84acbc2a2d772eb8a81381e5f6ff0b609b72e3012ac9f12db4d708a953893ca03a84a60719ec7a7ff46766fe21f32bf74350d0d8f75f1
6
+ metadata.gz: d0f9db7710649025a2f0369a093d61127bc5195b4acd5b3c8e51d207fb1944d638df5998965c98d9b0cbc9700eb6c5dea6972ed4a76b0ab604b3e8c1c78683bc
7
+ data.tar.gz: ffa1b98cccc1d88132d2283746aed7444e2e28eea2326dac4e7819e9271b0c7f88a138ad6692fabb5b839f6c6e3d45a43fd5e63e409b869c69a89c0b98452b26
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sidekiq_bulk_job (0.1.5)
4
+ sidekiq_bulk_job (0.1.7)
5
5
  sidekiq (~> 5.2.7)
6
6
 
7
7
  GEM
@@ -52,4 +52,4 @@ DEPENDENCIES
52
52
  sidekiq_bulk_job!
53
53
 
54
54
  BUNDLED WITH
55
- 2.2.25
55
+ 2.1.4
@@ -14,7 +14,7 @@ module SidekiqBulkJob
14
14
  attr_accessor :job_class_name, :errors, :jid
15
15
 
16
16
  def initialize(job_class_name, jid)
17
- @jid = jid
17
+ @jid = jid || SecureRandom.hex(12)
18
18
  @job_class_name = job_class_name
19
19
  @errors = []
20
20
  end
@@ -24,10 +24,10 @@ module SidekiqBulkJob
24
24
  rescue Exception => e
25
25
  error_handle.add _args, e
26
26
  SidekiqBulkJob.logger.error("#{job_class_name} Args: #{args}, Error: #{e.respond_to?(:full_message) ? e.full_message : e.message}")
27
- SidekiqBulkJob.fail_callback(job_class_name: job_class_name, args: args, exception: e)
28
27
  end
29
28
  end
30
29
  if error_handle.failed?
30
+ SidekiqBulkJob.fail_callback(job_class_name: job_class_name, args: error_handle.args, exception: error_handle.raise_error)
31
31
  SidekiqBulkJob::JobRetry.new(job, error_handle).push
32
32
  else
33
33
  error_handle.clear
@@ -34,6 +34,7 @@ module SidekiqBulkJob
34
34
  'class' => SidekiqBulkJob::BulkJob.to_s,
35
35
  'args' => @error_handle.args,
36
36
  'retry' => true,
37
+ 'jid' => @error_handle.jid,
37
38
  'retry_count' => @retry_count.to_i
38
39
  }.merge(options)
39
40
  if Sidekiq::VERSION >= "6.0.2"
@@ -1,3 +1,3 @@
1
1
  module SidekiqBulkJob
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq_bulk_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - scalaview
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-17 00:00:00.000000000 Z
11
+ date: 2021-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -85,7 +85,7 @@ homepage: https://github.com/scalaview/sidekiq_bulk_job
85
85
  licenses:
86
86
  - MIT
87
87
  metadata: {}
88
- post_install_message:
88
+ post_install_message:
89
89
  rdoc_options: []
90
90
  require_paths:
91
91
  - lib
@@ -100,9 +100,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
- rubyforge_project:
104
- rubygems_version: 2.5.2
105
- signing_key:
103
+ rubygems_version: 3.0.3
104
+ signing_key:
106
105
  specification_version: 4
107
106
  summary: Collect same jobs to single worker, reduce job number and improve thread
108
107
  utilization.