etcd3ref/client.py
def compact(self, revision, physical=False):
        """
        Compact the event history in etcd up to a given revision.

        All superseded keys with a revision less than the compaction revision
        will be removed.

        :param revision: revision for the compaction operation
        :param physical: if set to True, the request will wait until the
                         compaction is physically applied to the local database
                         such that compacted entries are totally removed from
                         the backend database
        """
        try:
            self.__compact(physical, revision)
        except _InactiveRpcError as e:
            print("Exception {} happened, try to reconnect \n".format(e))
            self.reconnect()
            self.__compact(physical, revision)

        Compact the event history in etcd up to a given revision.

        All superseded keys with a revision less than the compaction revision
        will be removed.

        :param revision: revision for the compaction operation
        :param physical: if set to True, the request will wait until the
                         compaction is physically applied to the local database
                         such that compacted entries are totally removed from
                         the backend database
        
Compact the event history in etcd up to a given revision.
All superseded keys with a revision less than the compaction revision
will be removed.
Compact the event history in etcd up to a given revision . All superseded keys with a revision less than the compaction revision will be removed .
def compact(self, revision, physical=False):
        try:
            self.__compact(physical, revision)
        except _InactiveRpcError as e:
            print("Exception {} happened, try to reconnect \n".format(e))
            self.reconnect()
            self.__compact(physical, revision)
def compact ( self , revision , physical = False ) : try : self . __compact ( physical , revision ) except _InactiveRpcError as e : print ( "Exception {} happened, try to reconnect \n" . format ( e ) ) self . reconnect ( ) self . __compact ( physical , revision )
Compact the event history in etcd up to a given revision.
Compact the event history in etcd up to a given revision .
"""
        Compact the event history in etcd up to a given revision.

        All superseded keys with a revision less than the compaction revision
        will be removed.

        :param revision: revision for the compaction operation
        :param physical: if set to True, the request will wait until the
                         compaction is physically applied to the local database
                         such that compacted entries are totally removed from
                         the backend database
        """
self
revision
revision for the compaction operation
revision for the compaction operation
physical
if set to True, the request will wait until the
compaction is physically applied to the local database
such that compacted entries are totally removed from
the backend database
if set to True the request will wait until the compaction is physically applied to the local database such that compacted entries are totally removed from the backend database