(self, min_interval)
return False
Update the checkpoint timestamp without altering the sequence.
        :param min_interval: minimum interval between timestamp updates

        :returns: Returns True if it updated the checkpoint, False otherwise
Update the checkpoint timestamp without altering the sequence.
        :param min_interval: minimum interval between timestamp updates
Update the checkpoint timestamp without altering the sequence . : param min_interval : minimum interval between timestamp updates
def touch(self, min_interval):
        """
        Update the checkpoint timestamp without altering the sequence.
        :param min_interval: minimum interval between timestamp updates

        :returns: Returns True if it updated the checkpoint, False otherwise
        """
        checkpoint = self.get_or_create_wrapped(verify_unchanged=True)
        now = datetime.utcnow()
        previous = self._last_checkpoint.timestamp if self._last_checkpoint else None
        do_update = True
        if previous:
            diff = now - previous
            do_update = diff.total_seconds() >= min_interval
        if do_update:
            checkpoint.timestamp = now
            checkpoint.save()
            return True
        return False
def touch ( self , min_interval ) : checkpoint = self . get_or_create_wrapped ( verify_unchanged = True ) now = datetime . utcnow ( ) previous = self . _last_checkpoint . timestamp if self . _last_checkpoint else None do_update = True if previous : diff = now - previous do_update = diff . total_seconds ( ) >= min_interval if do_update : checkpoint . timestamp = now checkpoint . save ( ) return True return False