Class: ForemanTasksCore::BatchAction

Inherits:
Dynflow::Action
  • Object
show all
Includes:
Dynflow::Action::WithPollingSubPlans, Dynflow::Action::WithSubPlans
Defined in:
lib/foreman_tasks_core/batch_action.rb

Direct Known Subclasses

SingleRunnerBatchAction

Instance Method Summary collapse

Instance Method Details

#initiateObject



12
13
14
15
# File 'lib/foreman_tasks_core/batch_action.rb', line 12

def initiate
  ping suspended_action
  wait_for_sub_plans sub_plans
end

#plan(launcher, input_hash) ⇒ Object

{ task_id => { :action_class => Klass, :input => input } }



7
8
9
10
# File 'lib/foreman_tasks_core/batch_action.rb', line 7

def plan(launcher, input_hash)
  launcher.launch_children(self, input_hash)
  plan_self
end

#rescue_strategyObject



17
18
19
# File 'lib/foreman_tasks_core/batch_action.rb', line 17

def rescue_strategy
  Dynflow::Action::Rescue::Fail
end