src/dirbs/listgen/generator.py
def _try_acquire_listgen_lock(self):
        """Try to acquire the lock ensuring only one list generation is proceeding concurrently."""
        with self._conn as conn, conn.cursor() as cursor:
            cursor.execute('SELECT pg_try_advisory_lock(%s::BIGINT)', [self._lock_key])
            return cursor.fetchone()[0]
Try to acquire the lock ensuring only one list generation is proceeding concurrently.
Try to acquire the lock ensuring only one list generation is proceeding concurrently.
Try to acquire the lock ensuring only one list generation is proceeding concurrently .
def _try_acquire_listgen_lock(self):
        with self._conn as conn, conn.cursor() as cursor:
            cursor.execute('SELECT pg_try_advisory_lock(%s::BIGINT)', [self._lock_key])
            return cursor.fetchone()[0]
def _try_acquire_listgen_lock ( self ) : with self . _conn as conn , conn . cursor ( ) as cursor : cursor . execute ( 'SELECT pg_try_advisory_lock(%s::BIGINT)' , [ self . _lock_key ] ) return cursor . fetchone ( ) [ 0 ]
Try to acquire the lock ensuring only one list generation is proceeding concurrently.
Try to acquire the lock ensuring only one list generation is proceeding concurrently .
"""Try to acquire the lock ensuring only one list generation is proceeding concurrently."""
self