func enablePre()

in main/cmds.go [49:59]


func enablePre(lg ExtensionLogger, seqNum int) error {
	// exit if this sequence number is already processed
	// if not, save the sequence number before proceeding
	if shouldExit, err := checkAndSaveSeqNum(lg, seqNum, MostRecentSequence); err != nil {
		return errors.Wrap(err, "failed to process seqnum")
	} else if shouldExit {
		lg.eventError("exit", errors.New("this sequence number smaller than the currently processed sequence number, will not run again"))
		os.Exit(successCode)
	}
	return nil
}