jason810496 commented on code in PR #50447:
URL: https://github.com/apache/airflow/pull/50447#discussion_r2083873630
##########
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:
The public `get_dag_bag` is used in `app.py` to set the global app state,
and the private `_get_dag_bag` is for FastAPI dependency injection.
--
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]