libis-workflow 2.1.12 → 2.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/libis/exceptions.rb +2 -0
- data/lib/libis/workflow/task.rb +9 -0
- data/lib/libis/workflow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c990ead0b896a319358301e6d0f7408224a74a488061479a3d077540feedf14c
|
4
|
+
data.tar.gz: 6ea4eb3ed9d61de6be4a0e234016243e9ca55f3703d43cce757443e82d4f8f6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe3bf6c93fbd63acd69b325179bbc720fa061846c420e6a2dd6cff681e7d6adbc44c3b7a8f4db8dbb206620239d5e8a0c54fac839fc4338fad720cdf19f4ae4c
|
7
|
+
data.tar.gz: 124b60c8e4bd0e891586f2f57e66439088ca73b5c51c5856d287c7958b999e75943407c397f40ca104a736d6d27eff3831e61ba4518e121edca1890be051ee2d
|
data/lib/libis/exceptions.rb
CHANGED
data/lib/libis/workflow/task.rb
CHANGED
@@ -99,6 +99,10 @@ module Libis
|
|
99
99
|
set_status item, :FAILED
|
100
100
|
raise e if parent
|
101
101
|
|
102
|
+
rescue WorkflowAbortForget => e
|
103
|
+
set_status item, :FAILED
|
104
|
+
raise e
|
105
|
+
|
102
106
|
rescue Exception => e
|
103
107
|
set_status item, :FAILED
|
104
108
|
fatal_error "Aborting ingest because of error: %s @ %s\n%s", item, e.message, e.backtrace.first, e.backtrace.map{|t| ' -- ' + t}.join("\n")
|
@@ -217,6 +221,11 @@ module Libis
|
|
217
221
|
set_status(item, :FAILED)
|
218
222
|
break
|
219
223
|
|
224
|
+
rescue Libis::WorkflowAbortForget => e
|
225
|
+
fatal_error 'Fatal error processing subitem (%d/%d): %s @ %s\n%s', item, i + 1, items.size, e.message, e.backtrace.first, e.backtrace.map{|t| ' -- ' + t}.join("\n")
|
226
|
+
set_status(item, :FAILED)
|
227
|
+
raise e
|
228
|
+
|
220
229
|
rescue Exception => e
|
221
230
|
set_status(item, :FAILED)
|
222
231
|
raise Libis::WorkflowAbort, "#{e.message} @ #{e.backtrace.first}"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Libis
|
2
2
|
module Workflow
|
3
|
-
VERSION = '2.1.
|
3
|
+
VERSION = '2.1.13' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
|
4
4
|
end
|
5
5
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libis-workflow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kris Dekeyser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|