bricolage-streamingload 0.16.0 → 0.16.1

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
  SHA256:
3
- metadata.gz: e799760fb58dd3ec1dcd3eeaf74b068a0336a21a32488f04dc0353d44514c0cd
4
- data.tar.gz: 1ec9bfe0cadd6537a352e99cf7b61d53122ae17a67dd31c733e4e2e0c7890849
3
+ metadata.gz: 3374ca3db7400fe9dc36658bf78b3d6516f0acaf4488eb81df1d8054196b055f
4
+ data.tar.gz: 96735f5f850c2769b6031dc9472e27406ba79c9087d9333ac3bc2cddd0113ebc
5
5
  SHA512:
6
- metadata.gz: 700157b7be5a53753056d7a830d5502c117cbcae474a97be17a72cb18b58a8aa48ea927aaf333040e6674c098413e91298a6bfe112b1fcd58293d32c4b207068
7
- data.tar.gz: bb63e1c5e7f646003ed07c0f12758cb79bd316227033d43ae2cb0165a203d3706bfdf6ea2eae8ef681e8d9c02285fcca5a98ab4f8d7b0c3a78ab3a11b853fe31
6
+ metadata.gz: 0b3a4caedabfea4579ad55942fb9e469821e9a82c50f7e09f782e37df00602ecb419ca47848339f0094dfeca3dc271337737d5fc0390c6e740e364c3dd84c174
7
+ data.tar.gz: 741586ac3cf7a4b4b5983af0a5775db34bf768a6b8a321347fd51a2970efc516ab5eb8516bdb3ecc68ca2ad82a4b923188eaba13e922b67ce06f953323232e40
data/RELEASE.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Bricolage Streaming Load Release Note
2
2
 
3
+ ## version 0.16.1
4
+
5
+ - [fix] Stop retrying after 2 times retried (total 3 trial).
6
+
3
7
  ## version 0.16.0
4
8
 
5
9
  - [new] Retry for also error tasks, not only failure tasks.
@@ -126,7 +126,11 @@ module Bricolage
126
126
  raise
127
127
  rescue JobError => ex
128
128
  ctl.open {
129
- ctl.abort_job job_id, 'error', ex.message.lines.first.strip
129
+ fail_count = @task.failure_count
130
+ final_retry = (fail_count >= MAX_RETRY)
131
+ retry_msg = (fail_count > 0) ? "(retry\##{fail_count}#{final_retry ? ' FINAL' : ''}) " : ''
132
+ ctl.abort_job job_id, 'error', retry_msg + ex.message.lines.first.strip
133
+ raise JobCancelled, "retry count exceeds limit: task_id=#{@task_id}" if final_retry
130
134
  }
131
135
  raise
132
136
  rescue Exception => ex
@@ -1,5 +1,5 @@
1
1
  module Bricolage
2
2
  module StreamingLoad
3
- VERSION = '0.16.0'
3
+ VERSION = '0.16.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bricolage-streamingload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minero Aoki