kaxil commented on code in PR #50447:
URL: https://github.com/apache/airflow/pull/50447#discussion_r2083475088
##########
airflow-core/src/airflow/api_fastapi/common/dagbag.py:
##########
@@ -14,22 +14,32 @@
# 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:
+def get_dag_bag() -> DagBag:
+ """Instantiate the appropriate DagBag based on the ``SKIP_DAGS_PARSING``
environment variable."""
if os.environ.get("SKIP_DAGS_PARSING") == "True":
return DagBag(os.devnull, include_examples=False)
return DagBag(DAGS_FOLDER, read_dags_from_db=True)
Review Comment:
Yeah, we don't parse dags in this function.
--
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]