kaxil commented on code in PR #50447:
URL: https://github.com/apache/airflow/pull/50447#discussion_r2084106774


##########
airflow-core/src/airflow/api_fastapi/common/dagbag.py:
##########
@@ -14,22 +14,29 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
-
 from __future__ import annotations
 
-import os
 from typing import Annotated
 
-from fastapi import Depends
+from fastapi import Depends, Request
 
 from airflow.models.dagbag import DagBag
 from airflow.settings import DAGS_FOLDER
 
 
-def _get_dag_bag() -> DagBag:
-    if os.environ.get("SKIP_DAGS_PARSING") == "True":
-        return DagBag(os.devnull, include_examples=False)
+def get_dag_bag() -> DagBag:

Review Comment:
   Yeah, what LIU said. Updated the func name for better clarity too 



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to