rbbt-util 5.17.59 → 5.17.60
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 +4 -4
- data/lib/rbbt/rest/client/step.rb +7 -5
- data/lib/rbbt/workflow/step.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: 65d71e6047aa30d6972336d3dc639a541e2fa06b
|
4
|
+
data.tar.gz: 74ca7ab7c13906eeb787ac6d6a07dc8a009b6ec3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1eaeb0173581df92c752cea6eb1bbb03f5fb5836f1231a9cfa2b8419fb88a2129b6745415ad31c12d6f88c5ffe15862969115ee269670f4171ef0acc5731345
|
7
|
+
data.tar.gz: 08e4e15dad4e2d99eedb5bd0d55d69b538fd0d91a9c504a1ea32dff29f014af1f6cf01990150a032943e1a9519e453ba9f5a080adc9265e03020137ea1f00454
|
@@ -7,7 +7,7 @@ class WorkflowRESTClient
|
|
7
7
|
inputs.each do |k,v|
|
8
8
|
if Step === v
|
9
9
|
stream = v.get_stream
|
10
|
-
inputs[k] = stream || v.
|
10
|
+
inputs[k] = stream || v.run
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -29,8 +29,8 @@ class WorkflowRESTClient
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def info(check_lock=false)
|
32
|
-
|
33
|
-
@info ||=
|
32
|
+
done = @info and @info[:status] and @info[:status].to_sym == :done
|
33
|
+
@info ||= Persist.memory("RemoteSteps Info", :url => @url, :persist => !done) do
|
34
34
|
init_job unless url
|
35
35
|
info = WorkflowRESTClient.get_json(File.join(url, 'info'))
|
36
36
|
info = WorkflowRESTClient.fix_hash(info)
|
@@ -153,16 +153,18 @@ class WorkflowRESTClient
|
|
153
153
|
|
154
154
|
def recursive_clean
|
155
155
|
begin
|
156
|
-
|
156
|
+
WorkflowRESTClient.get_raw(url, params.merge(:_update => :recursive_clean))
|
157
157
|
rescue Exception
|
158
|
+
Log.exception $!
|
158
159
|
end
|
159
160
|
self
|
160
161
|
end
|
161
162
|
|
162
163
|
def clean
|
163
164
|
begin
|
164
|
-
|
165
|
+
WorkflowRESTClient.get_raw(url, params.merge(:_update => :clean))
|
165
166
|
rescue Exception
|
167
|
+
Log.exception $!
|
166
168
|
end
|
167
169
|
self
|
168
170
|
end
|
data/lib/rbbt/workflow/step.rb
CHANGED
@@ -230,7 +230,7 @@ class Step
|
|
230
230
|
|
231
231
|
# A step result with no info_file means that it was manually
|
232
232
|
# placed. In that case, do not consider its dependencies
|
233
|
-
return [] if not WorkflowRESTClient::RemoteStep === self and Open.exists?(self.path.to_s) and not Open.exists? self.info_file
|
233
|
+
return [] if not (defined? WorkflowRESTClient and WorkflowRESTClient::RemoteStep === self) and Open.exists?(self.path.to_s) and not Open.exists? self.info_file
|
234
234
|
|
235
235
|
return [] if dependencies.nil? or dependencies.empty?
|
236
236
|
|