Class: Proxy::Dynflow::Action::BatchRunner
- Inherits:
-
Runner
- Object
- Dynflow::Action
- Shareable
- Runner
- Proxy::Dynflow::Action::BatchRunner
show all
- Defined in:
- lib/smart_proxy_dynflow/action/batch_runner.rb
Constant Summary
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
#poll, #run
Instance Method Details
#initiate_runner ⇒ Object
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
|