Class: Proxy::Dynflow::Action::BatchRunner

Inherits:
Runner
  • Object
show all
Defined in:
lib/smart_proxy_dynflow/action/batch_runner.rb

Instance Method Summary collapse

Methods inherited from Runner

#failed_run?, #finalize, #finish_run, #init_run, #kill_run, #output_result, #process_external_event, #process_update, #rescue_strategy_for_self, #run, #runner_dispatcher

Instance Method Details

#initiate_runnerObject



9
10
11
12
# File 'lib/smart_proxy_dynflow/action/batch_runner.rb', line 9

def initiate_runner
  launcher = Proxy::Dynflow::TaskLauncherRegistry.fetch(input[:operation])
  launcher.runner_class.new(input[:targets], suspended_action: suspended_action)
end

#plan(launcher, input) ⇒ Object



5
6
7
# File 'lib/smart_proxy_dynflow/action/batch_runner.rb', line 5

def plan(launcher, input)
  plan_self :targets => launcher.runner_input(input), :operation => launcher.operation
end