libis-workflow 2.0.22 → 2.0.23
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 +6 -4
- data/lib/libis/workflow/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 979b56ae0ac9760a07e46d7d2cfd53e303d15c22
|
4
|
+
data.tar.gz: d648b583fb9c6206014f772e6d10e4477c38fc5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50333dbbeb840a8dbd9dccb03535644d4e468c435f619f0a9d9156dfa0b7279a096491b6b5f7fd2608c1682f30ba57c808b04933e3f292282a29019d0acfc78f
|
7
|
+
data.tar.gz: 04acf0ddf0f3f8b73d6c5cf4998190108d155a3a143265ee69d4ca6eb3519c2d4d9ef9b58bb595f74f7b03be53a5f4f53440808bd45d1d7bc604213842a1bbbe
|
data/lib/libis/workflow/task.rb
CHANGED
@@ -46,10 +46,10 @@ module Libis
|
|
46
46
|
when :retry
|
47
47
|
if item.check_status(:DONE, self.namepath)
|
48
48
|
debug 'Retry: skipping task %s because it has finished successfully.', item, self.namepath
|
49
|
-
return
|
49
|
+
return item
|
50
50
|
end
|
51
51
|
when :failed
|
52
|
-
return
|
52
|
+
return item
|
53
53
|
else
|
54
54
|
end
|
55
55
|
|
@@ -60,7 +60,7 @@ module Libis
|
|
60
60
|
case item.status(self.namepath)
|
61
61
|
when :DONE
|
62
62
|
self.action = :run
|
63
|
-
return
|
63
|
+
return item
|
64
64
|
when :ASYNC_WAIT
|
65
65
|
self.action = :retry
|
66
66
|
when :ASYNC_HALT
|
@@ -68,7 +68,7 @@ module Libis
|
|
68
68
|
when :FAILED
|
69
69
|
break
|
70
70
|
else
|
71
|
-
return
|
71
|
+
return item
|
72
72
|
end
|
73
73
|
|
74
74
|
self.action = :retry
|
@@ -95,6 +95,8 @@ module Libis
|
|
95
95
|
ensure
|
96
96
|
item.save!
|
97
97
|
|
98
|
+
item
|
99
|
+
|
98
100
|
end
|
99
101
|
|
100
102
|
def names
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Libis
|
2
2
|
module Workflow
|
3
|
-
VERSION = '2.0.
|
3
|
+
VERSION = '2.0.23' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
|
4
4
|
end
|
5
5
|
end
|