libis-workflow 2.0.21 → 2.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/libis/workflow/task.rb +4 -2
- data/lib/libis/workflow/task_group.rb +1 -1
- data/lib/libis/workflow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e344d72a61dc66fdedcda280fd6e4e3c34375fb
|
4
|
+
data.tar.gz: f1e102557c7f0ea463bb2ccc7f12880ca7b28c41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 810e08d9332f5b1e31172bcf0214a9f350c09fed2d58f69870a7e713bcd4a0598e9257aa45fa32de1602873601e5f36291da36748b785200df26f73ac4aa0944
|
7
|
+
data.tar.gz: 68c5b4900ab55749f5058eee41d980ae6438bd15a02bea0cc0ba0900306e041ebd21717424e15a789dac5a97720cb323cfc507cbd863660d1fa69b67ecf57625
|
data/lib/libis/workflow/task.rb
CHANGED
@@ -55,7 +55,7 @@ module Libis
|
|
55
55
|
|
56
56
|
(parameter(:retry_count)+1).times do
|
57
57
|
|
58
|
-
run_item(item)
|
58
|
+
item = run_item(item)
|
59
59
|
|
60
60
|
case item.status(self.namepath)
|
61
61
|
when :DONE
|
@@ -167,6 +167,8 @@ module Libis
|
|
167
167
|
end
|
168
168
|
|
169
169
|
post_process item
|
170
|
+
|
171
|
+
item
|
170
172
|
end
|
171
173
|
|
172
174
|
def pre_process(_)
|
@@ -188,7 +190,7 @@ module Libis
|
|
188
190
|
parent_item.status_progress(self.namepath, 0, items.count)
|
189
191
|
items.each_with_index do |item, i|
|
190
192
|
debug 'Processing subitem (%d/%d): %s', parent_item, i+1, items.size, item.to_s
|
191
|
-
run_item item
|
193
|
+
item = run_item item
|
192
194
|
parent_item.status_progress(self.namepath, i+1)
|
193
195
|
item_status = item.status(self.namepath)
|
194
196
|
status[item_status] += 1
|
@@ -41,7 +41,7 @@ module Libis
|
|
41
41
|
item.status_progress(self.namepath, 0, tasks.count)
|
42
42
|
tasks.each_with_index do |task, i|
|
43
43
|
info 'Running subtask (%d/%d): %s', item, i+1, tasks.size, task.name
|
44
|
-
task.run item
|
44
|
+
item = task.run item
|
45
45
|
item.status_progress(self.namepath, i+1)
|
46
46
|
item_status = item.status(task.namepath)
|
47
47
|
status[item_status] += 1
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Libis
|
2
2
|
module Workflow
|
3
|
-
VERSION = '2.0.
|
3
|
+
VERSION = '2.0.22' 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.0.
|
4
|
+
version: 2.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kris Dekeyser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06-
|
11
|
+
date: 2016-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|