rbbt-util 5.21.83 → 5.21.84
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/workflow.rb +12 -8
- 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: a49d93fb2f43d54bb645860d3cebbe8b963a49ef
|
4
|
+
data.tar.gz: cdadbfaa80ca05d96d2bea551d46778baa22adf8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 513419ec73b7769efd06ee338e8630cb811ee1640c43108d3d5b961e97057de8855109389696c432363eaaabe1982ae6d4e0d1b103f91865f5656dcb08b34d7e
|
7
|
+
data.tar.gz: 1d7329702b78feaa162d9d457f266afb4d5f48727987ebeb38ee1ac3156068d846e019bd48692cd5e9a00239722726bd48340995fbcf5beacd2c1d09bfcf138d
|
data/lib/rbbt/workflow.rb
CHANGED
@@ -350,6 +350,15 @@ module Workflow
|
|
350
350
|
job
|
351
351
|
end
|
352
352
|
|
353
|
+
def set_step_dependencies(step)
|
354
|
+
if step.info.include? :dependencies
|
355
|
+
step.dependencies = step.info[:dependencies].collect do |task, job, path|
|
356
|
+
next if job.nil?
|
357
|
+
load_step(path)
|
358
|
+
end
|
359
|
+
end
|
360
|
+
end
|
361
|
+
|
353
362
|
def get_job_step(step_path, task = nil, input_values = nil, dependencies = nil)
|
354
363
|
step_path = step_path.call if Proc === step_path
|
355
364
|
persist = input_values.nil? ? false : true
|
@@ -357,13 +366,14 @@ module Workflow
|
|
357
366
|
key = Path === step_path ? step_path.find : step_path
|
358
367
|
step = Step.new step_path, task, input_values, dependencies
|
359
368
|
|
360
|
-
|
361
369
|
step.extend step_module
|
362
370
|
|
363
371
|
step.task ||= task
|
364
372
|
step.inputs ||= input_values
|
365
373
|
step.dependencies = dependencies if dependencies and (step.dependencies.nil? or step.dependencies.length < dependencies.length)
|
366
374
|
|
375
|
+
set_step_dependencies(step)
|
376
|
+
|
367
377
|
step
|
368
378
|
end
|
369
379
|
|
@@ -372,13 +382,7 @@ module Workflow
|
|
372
382
|
task = task_for path
|
373
383
|
return remote_tasks[task].load_id(id) if remote_tasks and remote_tasks.include? task
|
374
384
|
step = Step.new path, tasks[task.to_sym]
|
375
|
-
step
|
376
|
-
if step.info.include? :dependencies
|
377
|
-
step.dependencies = step.info[:dependencies].collect do |task, job, path|
|
378
|
-
next if job.nil?
|
379
|
-
load_step(path)
|
380
|
-
end
|
381
|
-
end
|
385
|
+
set_step_dependencies(step)
|
382
386
|
step
|
383
387
|
end
|
384
388
|
|