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 +4 -4
- data/lib/herdst_worker/queue/runner.rb +4 -2
- data/lib/herdst_worker/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '02193d09ac1bb8582882d36e937425623cf00768c1be911be7a857609e889099'
|
4
|
+
data.tar.gz: 8ce2b6a8f69a84daf820ff98510f3f20f8544108ab64f4a2fc0a0795fad2c846
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|