Class: Proxy::Dynflow::Action::Batch

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

Direct Known Subclasses

SingleRunnerBatch

Instance Method Summary collapse

Instance Method Details

#initiateObject



12
13
14
15
# File 'lib/smart_proxy_dynflow/action/batch.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/smart_proxy_dynflow/action/batch.rb', line 7

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

#rescue_strategyObject



17
18
19
# File 'lib/smart_proxy_dynflow/action/batch.rb', line 17

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