Class: Tumugi::Command::Run
- Inherits:
-
Object
- Object
- Tumugi::Command::Run
- Defined in:
- lib/tumugi/command/run.rb
Instance Method Summary collapse
Instance Method Details
#execute(dag, options = {}) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/tumugi/command/run.rb', line 7 def execute(dag, ={}) worker_num = [:workers] || Tumugi.config.workers executor = Tumugi::Executor::LocalExecutor.new(dag, worker_num: worker_num) result = start(executor) show_result_report(dag) result end |