src/dirbs/importer/abstract_importer.py
def _release_import_lock(self):
        """Explicitly release the import lock.

        It is automatically released at the end of the current transaction, but releasing it explicitly at the end of
        an import allows two imports to use the same connection without having to do a commit in between. Useful for
        unit tests as well and also reduces the number of locks we hold open during a transaction.
        """
        with self._conn.cursor() as cursor:
            cursor.execute('SELECT pg_advisory_unlock(%s::BIGINT)', [self._import_lock_key])
            return cursor.fetchone()[0]
Explicitly release the import lock.

        It is automatically released at the end of the current transaction, but releasing it explicitly at the end of
        an import allows two imports to use the same connection without having to do a commit in between. Useful for
        unit tests as well and also reduces the number of locks we hold open during a transaction.
        
Explicitly release the import lock.
It is automatically released at the end of the current transaction, but releasing it explicitly at the end of
an import allows two imports to use the same connection without having to do a commit in between. Useful for
unit tests as well and also reduces the number of locks we hold open during a transaction.
Explicitly release the import lock . It is automatically released at the end of the current transaction but releasing it explicitly at the end of an import allows two imports to use the same connection without having to do a commit in between . Useful for unit tests as well and also reduces the number of locks we hold open during a transaction .
def _release_import_lock(self):
        with self._conn.cursor() as cursor:
            cursor.execute('SELECT pg_advisory_unlock(%s::BIGINT)', [self._import_lock_key])
            return cursor.fetchone()[0]
def _release_import_lock ( self ) : with self . _conn . cursor ( ) as cursor : cursor . execute ( 'SELECT pg_advisory_unlock(%s::BIGINT)' , [ self . _import_lock_key ] ) return cursor . fetchone ( ) [ 0 ]
Explicitly release the import lock.
Explicitly release the import lock .
"""Explicitly release the import lock.

        It is automatically released at the end of the current transaction, but releasing it explicitly at the end of
        an import allows two imports to use the same connection without having to do a commit in between. Useful for
        unit tests as well and also reduces the number of locks we hold open during a transaction.
        """
self