(self, db_key, db_name=None, key_prefix=None)
We close the db connections explicitly b/c when we don't they keep
        locks on the db. This presents as issues such as the SQL Server Agent
        being unable to stop.
We close the db connections explicitly b/c when we don't they keep
        locks on the db. This presents as issues such as the SQL Server Agent
        being unable to stop.
We close the db connections explicitly b / c when we don t they keep locks on the db . This presents as issues such as the SQL Server Agent being unable to stop .
def close_db_connections(self, db_key, db_name=None, key_prefix=None):
        """
        We close the db connections explicitly b/c when we don't they keep
        locks on the db. This presents as issues such as the SQL Server Agent
        being unable to stop.
        """
        conn_key = self._conn_key(db_key, db_name, key_prefix)
        if conn_key not in self._conns:
            return

        try:
            self._conns[conn_key].close()
            del self._conns[conn_key]
        except Exception as e:
            self.log.warning("Could not close adodbapi db connection\n%s", e)
def close_db_connections ( self , db_key , db_name = None , key_prefix = None ) : conn_key = self . _conn_key ( db_key , db_name , key_prefix ) if conn_key not in self . _conns : return try : self . _conns [ conn_key ] . close ( ) del self . _conns [ conn_key ] except Exception as e : self . log . warning ( "Could not close adodbapi db connection\n%s" , e )