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

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

Constant Summary

Constants included from WithExternalPolling

WithExternalPolling::Poll

Instance Method Summary collapse

Methods inherited from Runner

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

Methods included from WithExternalPolling

#poll, #run

Instance Method Details

#initiate_runnerObject



11
12
13
14
# File 'lib/smart_proxy_dynflow/action/batch_runner.rb', line 11

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

#plan(launcher, input, runner_id) ⇒ Object



7
8
9
# File 'lib/smart_proxy_dynflow/action/batch_runner.rb', line 7

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