libis-workflow 2.1.11 → 2.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b45eec150d2623a1964f817b0978fd284503d66ad65a5ca8788844e2d1f48b07
4
- data.tar.gz: afdd24080859c8eb30fe0f2620b90cc5481964de0eb3b56c994d159da0e21273
3
+ metadata.gz: c990ead0b896a319358301e6d0f7408224a74a488061479a3d077540feedf14c
4
+ data.tar.gz: 6ea4eb3ed9d61de6be4a0e234016243e9ca55f3703d43cce757443e82d4f8f6d
5
5
  SHA512:
6
- metadata.gz: 0a90748b08037a04265ad202ed6653162909290fe2b19fdd549cd3ab1b4b443f9b6e40927831e9024a6686400761edae6c66e7db0c0cc5dbb651dc7ba2556b6a
7
- data.tar.gz: 7db7628064c75f85f1d897c34f2e7bfe64f1fea470422da341195ac52d1c9c556fdc283c69e0f8197837e4d18641e9c6ec2a3dea460497938b468aae93818eb1
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}"
@@ -54,7 +54,7 @@ module Libis
54
54
  item.status_progress(self.namepath, i+1)
55
55
  item_status = item.status(task.namepath)
56
56
  status_count[item_status] += 1
57
- continue = false if parameter(:abort_on_failure) && item_status != :DONE
57
+ continue = false if !task.parameter(:run_always) && parameter(:abort_on_failure) && item_status != :DONE
58
58
  end
59
59
 
60
60
  substatus_check(status_count, item, 'task')
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Workflow
3
- VERSION = '2.1.11' 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.11
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