rbbt-util 5.21.2 → 5.21.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/etc/app.d/base.rb +1 -1
- data/etc/app.d/remote_workflow_tasks.rb +5 -0
- data/lib/rbbt/workflow/step/dependencies.rb +4 -0
- data/share/config.ru +3 -0
- data/share/rbbt_commands/workflow/task +0 -15
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fed32dc5ba8e0d0742a2e28807a2f928cd8c06b5
|
4
|
+
data.tar.gz: 55d7d7cf1351277c9f2a884163b68135f415a667
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79d15751f9a62614261e5cda71ff66b489616f9a2c973692b5bac45f6b7a167a30451b5a8b657382c267fd7f74284e87ac7c62a14787c3bdd583755d507fd9d7
|
7
|
+
data.tar.gz: 8449188566365eacd5b286ebaaba2f6df65a2b78bc6dab306ea06d15620c854da5e8a5429724f9d8b526716cd41e16d1f4eeec50cd1a880e32328eb9d087d2c1
|
data/etc/app.d/base.rb
CHANGED
@@ -19,7 +19,7 @@ use Rack::Session::Cookie, :key => 'rack.session',
|
|
19
19
|
|
20
20
|
#{{{ DIRECTORIES
|
21
21
|
global_var = Rbbt.var.sinatra
|
22
|
-
local_var = Rbbt.var.sinatra.app[$
|
22
|
+
local_var = Rbbt.var.sinatra.app[$app_name]
|
23
23
|
|
24
24
|
set :cache_dir , local_var.cache
|
25
25
|
set :persist_dir , local_var.cache.persistence
|
@@ -108,6 +108,10 @@ class Step
|
|
108
108
|
dependency.resolve_input_steps
|
109
109
|
|
110
110
|
if dependency.done?
|
111
|
+
dependency.inputs.each do |v|
|
112
|
+
Misc.consume_stream(v) if IO === v
|
113
|
+
Misc.consume_stream(TSV.get_stream v) if Step === v and not v.done? and v.streaming?
|
114
|
+
end
|
111
115
|
log_dependency_exec(dependency, :done) if log
|
112
116
|
return
|
113
117
|
end
|
data/share/config.ru
CHANGED
@@ -35,6 +35,9 @@ load_file Rbbt.etc['app.d/pre.rb'].find
|
|
35
35
|
#{{{ WORKFLOWS
|
36
36
|
app_eval app, Rbbt.etc['app.d/workflows.rb'].find_all
|
37
37
|
|
38
|
+
#{{{ REMOTE WORKFLOW TASKS
|
39
|
+
app_eval app, Rbbt.etc['app.d/remote_workflow_tasks.rb'].find_all
|
40
|
+
|
38
41
|
#{{{ BASE
|
39
42
|
app_eval app, Rbbt.etc['app.d/base.rb'].find
|
40
43
|
|
@@ -444,9 +444,6 @@ when (defined?(WorkflowRESTClient) and WorkflowRESTClient::RemoteStep)
|
|
444
444
|
if res.respond_to? :gets
|
445
445
|
begin
|
446
446
|
Misc.consume_stream(res, false, out)
|
447
|
-
#while block = res.readpartial(Misc::BLOCK_SIZE) do
|
448
|
-
# out.write block
|
449
|
-
#end #unless io.closed?
|
450
447
|
rescue EOFError, IOError
|
451
448
|
end
|
452
449
|
res.join if res.respond_to? :join
|
@@ -457,23 +454,11 @@ when Step
|
|
457
454
|
if res.streaming?
|
458
455
|
io = TSV.get_stream res
|
459
456
|
Misc.consume_stream(io, false, out)
|
460
|
-
#begin
|
461
|
-
# while block = io.readpartial(Misc::BLOCK_SIZE) do
|
462
|
-
# out.write block
|
463
|
-
# end #unless io.closed?
|
464
|
-
#rescue EOFError, IOError
|
465
|
-
#end
|
466
457
|
io.join if io.respond_to? :join
|
467
458
|
elsif IO === res.result
|
468
459
|
begin
|
469
460
|
io = res.get_stream
|
470
461
|
Misc.consume_stream(io, false, out)
|
471
|
-
#begin
|
472
|
-
# while block = io.readpartial(Misc::BLOCK_SIZE) do
|
473
|
-
# out.write block
|
474
|
-
# end #unless io.closed?
|
475
|
-
#rescue EOFError, IOError
|
476
|
-
#end
|
477
462
|
io.join if io.respond_to? :join
|
478
463
|
rescue Aborted, Interrupt
|
479
464
|
Log.error "Process interrupted. Aborting step"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbbt-util
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.21.
|
4
|
+
version: 5.21.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -177,6 +177,7 @@ files:
|
|
177
177
|
- etc/app.d/grid_system.rb
|
178
178
|
- etc/app.d/init.rb
|
179
179
|
- etc/app.d/knowledge_bases.rb
|
180
|
+
- etc/app.d/remote_workflow_tasks.rb
|
180
181
|
- etc/app.d/requires.rb
|
181
182
|
- etc/app.d/resources.rb
|
182
183
|
- etc/app.d/workflows.rb
|