Class: Tumugi::Command::Run

Inherits:
Object
  • Object
show all
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, options={})
  worker_num = options[:workers] || Tumugi.config.workers
  executor = Tumugi::Executor::LocalExecutor.new(dag, worker_num: worker_num)
  result = start(executor)
  show_result_report(dag)
  result
end