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

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

Direct Known Subclasses

SingleRunnerBatch

Instance Method Summary collapse

Instance Method Details

#create_sub_plansObject



13
14
15
16
17
# File 'lib/smart_proxy_dynflow/action/batch.rb', line 13

def create_sub_plans
  Proxy::Dynflow::TaskLauncher::Abstract
    .new_from_hash(world, input[:launcher])
    .launch_children(self, input[:input_hash])
end

#notify_on_finish(_plans) ⇒ Object



23
24
25
# File 'lib/smart_proxy_dynflow/action/batch.rb', line 23

def notify_on_finish(_plans)
  # Do nothing
end

#plan(launcher, input_hash) ⇒ Object

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



8
9
10
11
# File 'lib/smart_proxy_dynflow/action/batch.rb', line 8

def plan(launcher, input_hash)
  plan_self :input_hash => input_hash,
            :launcher => launcher.to_hash
end

#rescue_strategyObject



19
20
21
# File 'lib/smart_proxy_dynflow/action/batch.rb', line 19

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