lib/dynflow/execution_plan.rb
def delay(caller_action, action_class, delay_options, *args)
      save
      @root_plan_step = add_scheduling_step(action_class, caller_action)
      run_hooks(:pending)
      serializer = root_plan_step.delay(delay_options, args)
      delayed_plan = DelayedPlan.new(@world,
                                     id,
                                     delay_options[:start_at],
                                     delay_options.fetch(:start_before, nil),
                                     serializer,
                                     delay_options[:frozen] || false)
      persistence.save_delayed_plan(delayed_plan)
    ensure
      update_state(error? ? :stopped : :scheduled)
    end
# a fallback object representing a plan with some corrupted data,
# preventing to load the whole plan properly, this can be used for presenting
# at least some data and not running into internal server errors
a fallback object representing a plan with some corrupted data,
preventing to load the whole plan properly, this can be used for presenting
at least some data and not running into internal server errors
a fallback object representing a plan with some corrupted data preventing to load the whole plan properly this can be used for presenting at least some data and not running into internal server errors
def delay(caller_action, action_class, delay_options, *args)
      save
      @root_plan_step = add_scheduling_step(action_class, caller_action)
      run_hooks(:pending)
      serializer = root_plan_step.delay(delay_options, args)
      delayed_plan = DelayedPlan.new(@world,
                                     id,
                                     delay_options[:start_at],
                                     delay_options.fetch(:start_before, nil),
                                     serializer,
                                     delay_options[:frozen] || false)
      persistence.save_delayed_plan(delayed_plan)
    ensure
      update_state(error? ? :stopped : :scheduled)
    end
def delay ( caller_action , action_class , delay_options , * args ) save @root_plan_step = add_scheduling_step ( action_class , caller_action ) run_hooks ( :pending ) serializer = root_plan_step . delay ( delay_options , args ) delayed_plan = DelayedPlan . new ( @world , id , delay_options [ :start_at ] , delay_options . fetch ( :start_before , nil ) , serializer , delay_options [ :frozen ] || false ) persistence . save_delayed_plan ( delayed_plan ) ensure update_state ( error? ? :stopped : :scheduled ) end
a fallback object representing a plan with some corrupted data,
preventing to load the whole plan properly, this can be used for presenting
at least some data and not running into internal server errors
a fallback object representing a plan with some corrupted data preventing to load the whole plan properly this can be used for presenting at least some data and not running into internal server errors
caller_action
action_class
delay_options
args