lib/dynflow/world/invalidation.rb
def invalidate_step(step)
        if step.state == :running
          step.error = ExecutionPlan::Steps::Error.new("Abnormal termination (previous state: #{step.state})")
          step.state = :error
          step.save
        end
      end
# Invalidate another world, that left some data in the runtime,
# but it's not really running
#
# @param world [Coordinator::ClientWorld, Coordinator::ExecutorWorld] coordinator record
#   left behind by the world we're trying to invalidate
# @return [void]
Invalidate another world, that left some data in the runtime,
but it's not really running
Invalidate another world that left some data in the runtime but it ' s not really running
def invalidate_step(step)
        if step.state == :running
          step.error = ExecutionPlan::Steps::Error.new("Abnormal termination (previous state: #{step.state})")
          step.state = :error
          step.save
        end
      end
def invalidate_step ( step ) if step . state == :running step . error = ExecutionPlan :: Steps :: Error . new ( "Abnormal termination (previous state: #{step.state})" ) step . state = :error step . save end end
Invalidate another world, that left some data in the runtime,
but it's not really running
Invalidate another world that left some data in the runtime but it ' s not really running
None
void
step
world
coordinator record left behind by the world we're trying to invalidate
coordinator record left behind by the world we ' re trying to invalidate