potiuk commented on code in PR #38563: URL: https://github.com/apache/airflow/pull/38563#discussion_r1557175740
########## airflow/utils/session.py: ########## @@ -24,12 +24,17 @@ from sqlalchemy.orm import Session as SASession from airflow import settings +from airflow.api_internal.internal_api_call import InternalApiConfig +from airflow.settings import TracebackSession from airflow.typing_compat import ParamSpec @contextlib.contextmanager def create_session() -> Generator[SASession, None, None]: """Contextmanager that will create and teardown a session.""" + if InternalApiConfig.get_use_internal_api(): Review Comment: should be: ``` if conf.getboolean("core", "database_access_isolation", fallback=False) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org