data/registry_model/manifestbuilder.py
def done(self):
        """
        Marks the manifest builder as complete and disposes of any state.

        This call is optional and it is expected manifest builders will eventually time out if
        unused for an extended period of time.
        """
        temp_storages = self._builder_state.temp_storages
        for storage_id in temp_storages:
            try:
                storage = ImageStorage.get(id=storage_id)
                if storage.uploading and storage.content_checksum != EMPTY_LAYER_BLOB_DIGEST:
                    # Delete all the placements pointing to the storage.
                    ImageStoragePlacement.delete().where(
                        ImageStoragePlacement.storage == storage
                    ).execute()

                    # Delete the storage.
                    storage.delete_instance()
            except ImageStorage.DoesNotExist:
                pass

        session.pop(_SESSION_KEY, None)

        Marks the manifest builder as complete and disposes of any state.

        This call is optional and it is expected manifest builders will eventually time out if
        unused for an extended period of time.
        
Marks the manifest builder as complete and disposes of any state.
This call is optional and it is expected manifest builders will eventually time out if
unused for an extended period of time.
Marks the manifest builder as complete and disposes of any state . This call is optional and it is expected manifest builders will eventually time out if unused for an extended period of time .
def done(self):
        temp_storages = self._builder_state.temp_storages
        for storage_id in temp_storages:
            try:
                storage = ImageStorage.get(id=storage_id)
                if storage.uploading and storage.content_checksum != EMPTY_LAYER_BLOB_DIGEST:
                    ImageStoragePlacement.delete().where(
                        ImageStoragePlacement.storage == storage
                    ).execute()
                    storage.delete_instance()
            except ImageStorage.DoesNotExist:
                pass
        session.pop(_SESSION_KEY, None)
def done ( self ) : temp_storages = self . _builder_state . temp_storages for storage_id in temp_storages : try : storage = ImageStorage . get ( id = storage_id ) if storage . uploading and storage . content_checksum != EMPTY_LAYER_BLOB_DIGEST : ImageStoragePlacement . delete ( ) . where ( ImageStoragePlacement . storage == storage ) . execute ( ) storage . delete_instance ( ) except ImageStorage . DoesNotExist : pass session . pop ( _SESSION_KEY , None )
Marks the manifest builder as complete and disposes of any state.
Marks the manifest builder as complete and disposes of any state .
"""
        Marks the manifest builder as complete and disposes of any state.

        This call is optional and it is expected manifest builders will eventually time out if
        unused for an extended period of time.
        """ # Delete all the placements pointing to the storage. # Delete the storage.
self