Class: ForemanTasksCore::TaskLauncher::ParentAction

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

Instance Method Summary collapse

Instance Method Details

#initiateObject



13
14
15
16
# File 'lib/foreman_tasks_core/task_launcher/batch.rb', line 13

def initiate
  ping suspended_action
  wait_for_sub_plans sub_plans
end

#plan(launcher, input_hash) ⇒ Object

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



8
9
10
11
# File 'lib/foreman_tasks_core/task_launcher/batch.rb', line 8

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

#rescue_strategyObject



18
19
20
# File 'lib/foreman_tasks_core/task_launcher/batch.rb', line 18

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