herdst_worker 0.1.12 → 0.1.13

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: de1696f26e425f21b3b7b012d121e1b26ea963ebcf8af1c8f8a9c13139aeca1c
4
- data.tar.gz: df244986263a10dbe81226d4460dbea2347291ceead2271615482dae8cfb3616
3
+ metadata.gz: '02193d09ac1bb8582882d36e937425623cf00768c1be911be7a857609e889099'
4
+ data.tar.gz: 8ce2b6a8f69a84daf820ff98510f3f20f8544108ab64f4a2fc0a0795fad2c846
5
5
  SHA512:
6
- metadata.gz: bfe4d82d6ccd9c9d2c4f6d0ba525e5a390efe99f6c4195a4f024f94f14f8d9528f95d762194d811048cd9b3dedd8949e519fbb5c385a9e787cc9f8dfc3967bee
7
- data.tar.gz: 0f455004efd2140e80884dea4287fe235b41112d9a6b7e072373f6538e9becbf1b8b50165bc59062a75d90994de0ff7a00f5a710e485f84b5da98f0013c0737f
6
+ metadata.gz: 2dfb5f43c264f4c3c28304e64948603bd4e817b947b04f5adf7d29c588624b3ca9f4ef0f67e13490965e11350d0bb955a4cd7f25791e2c66dd34f2127090a137
7
+ data.tar.gz: a74f224e8782bbfab17d1a2ffb2f579a281ef3a7077e3e3b26621c29eb188d080407c4ac5c3fe886bdd380b66eac74e4aec2af2760873452d0bf86be026cadc6
@@ -94,7 +94,7 @@ module HerdstWorker
94
94
  return Concurrent::Promise.new {} if execution_promise == nil
95
95
  return execution_promise.rescue { |ex|
96
96
  execution_data.each do |data|
97
- fail_action_permanently(data) if will_fail_permanently
97
+ fail_action_permanently(ex, data) if will_fail_permanently
98
98
  end
99
99
 
100
100
  raise ex
@@ -125,8 +125,10 @@ module HerdstWorker
125
125
 
126
126
 
127
127
  protected
128
- def fail_action_permanently(data)
128
+ def fail_action_permanently(ex, data)
129
+ ex_message = ex ? ex.message : nil
129
130
 
131
+ self.app.logger.queue.error "Message failed permanently: #{ex_message}"
130
132
  end
131
133
 
132
134
 
@@ -1,3 +1,3 @@
1
1
  module HerdstWorker
2
- VERSION = '0.1.12'
2
+ VERSION = '0.1.13'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: herdst_worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Herd.St