lib/resque/plugins/multi_step_task.rb
def maybe_finalize
        return unless ready_for_finalization? && !incomplete_because_of_errors?
        finalize!
      rescue FinalizationAlreadyBegun
        # Just eat it the exception.  Sometimes multiple normal jobs
        # will try to finalize a task simultaneously.  This is
        # expected behavior because normal jobs run in parallel.
      end
# Execute finalization sequence if it is time.
Execute finalization sequence if it is time.
Execute finalization sequence if it is time .
def maybe_finalize
        return unless ready_for_finalization? && !incomplete_because_of_errors?
        finalize!
      rescue FinalizationAlreadyBegun
      end
def maybe_finalize return unless ready_for_finalization? && ! incomplete_because_of_errors? finalize! rescue FinalizationAlreadyBegun end
Execute finalization sequence if it is time.
Execute finalization sequence if it is time .
# Just eat it the exception.  Sometimes multiple normal jobs # will try to finalize a task simultaneously.  This is # expected behavior because normal jobs run in parallel.