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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d7a03cddf7a2afa5cc01a9e44b7c3b0c0e69a41bfcd903707cbe35d10b4dbe33
4
- data.tar.gz: 7c291e78b2d17e19d5e4d242988c2aeb89018b9859b4d15f23b752e72a3494fb
3
+ metadata.gz: c990ead0b896a319358301e6d0f7408224a74a488061479a3d077540feedf14c
4
+ data.tar.gz: 6ea4eb3ed9d61de6be4a0e234016243e9ca55f3703d43cce757443e82d4f8f6d
5
5
  SHA512:
6
- metadata.gz: 5bcb86db5b30b0ff876254af177cb77849d99a6a3c4dd9aa38e6c6d4bbc12fbfd2e54ab7ffd114f7050812b389a6cc45d2cbcfbbf68f5f167f85f541d190e0aa
7
- data.tar.gz: 39898e32faef863fc67d9470a9e2f9d6e93073f640fd2607187d0727ac6a36995cef8ef2aa78de324a0caf8e8077e45aeba72ac78ade269f1021903415e6ab15
6
+ metadata.gz: fe3bf6c93fbd63acd69b325179bbc720fa061846c420e6a2dd6cff681e7d6adbc44c3b7a8f4db8dbb206620239d5e8a0c54fac839fc4338fad720cdf19f4ae4c
7
+ data.tar.gz: 124b60c8e4bd0e891586f2f57e66439088ca73b5c51c5856d287c7958b999e75943407c397f40ca104a736d6d27eff3831e61ba4518e121edca1890be051ee2d
@@ -3,4 +3,6 @@ module Libis
3
3
  end
4
4
  class WorkflowAbort < ::RuntimeError
5
5
  end
6
+ class WorkflowAbortForget < ::RuntimeError
7
+ end
6
8
  end
@@ -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.12' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
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.12
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-09-06 00:00:00.000000000 Z
11
+ date: 2023-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake