mlflow/database/__init__.py
def make_managed_session():
        """Provide a transactional scope around a series of operations."""
        session = SessionMaker()
        try:
            yield session
            session.commit()
        except MlflowException:
            session.rollback()
            raise
        except Exception as e:
            session.rollback()
            raise MlflowException(message=e, error_code=INTERNAL_ERROR)
        finally:
            session.close()
Provide a transactional scope around a series of operations.
Provide a transactional scope around a series of operations.
Provide a transactional scope around a series of operations .
def make_managed_session():
        session = SessionMaker()
        try:
            yield session
            session.commit()
        except MlflowException:
            session.rollback()
            raise
        except Exception as e:
            session.rollback()
            raise MlflowException(message=e, error_code=INTERNAL_ERROR)
        finally:
            session.close()
def make_managed_session ( ) : session = SessionMaker ( ) try : yield session session . commit ( ) except MlflowException : session . rollback ( ) raise except Exception as e : session . rollback ( ) raise MlflowException ( message = e , error_code = INTERNAL_ERROR ) finally : session . close ( )
Provide a transactional scope around a series of operations.
Provide a transactional scope around a series of operations .
"""Provide a transactional scope around a series of operations."""