(self, tokens)
return True
Archive tokens.

        Args:
            tokens: The list of tokens to archive.
        Returns:
            True iff tokens have been successfully archived.
Archive tokens.
Archive tokens .
def _archive_tokens(self, tokens):
        """Archive tokens.

        Args:
            tokens: The list of tokens to archive.
        Returns:
            True iff tokens have been successfully archived.
        """
        archive_request = ArchiveRequest(tokens=tokens)
        try:
            self._client.archive(archive_request)
        except TokenMasterException:
            # It's no big deal if the request failed this time - the same or a
            # different worker will try it again some other time.
            LOG.exception('error sending request %s', archive_request)
            return False
        return True
def _archive_tokens ( self , tokens ) : archive_request = ArchiveRequest ( tokens = tokens ) try : self . _client . archive ( archive_request ) except TokenMasterException : # It's no big deal if the request failed this time - the same or a # different worker will try it again some other time. LOG . exception ( 'error sending request %s' , archive_request ) return False return True