ashb commented on a change in pull request #11335:
URL: https://github.com/apache/airflow/pull/11335#discussion_r511861198
##########
File path: airflow/api/common/experimental/__init__.py
##########
@@ -32,9 +31,9 @@ def check_and_get_dag(dag_id: str, task_id: Optional[str] =
None) -> DagModel:
dagbag = DagBag(
dag_folder=dag_model.fileloc,
- read_dags_from_db=conf.getboolean('core', 'store_serialized_dags')
+ read_dags_from_db=True
)
- dag = dagbag.get_dag(dag_id) # prefetch dag if it is stored serialized
+ dag = dagbag.get_dag(dag_id)
if dag_id not in dagbag.dags:
Review comment:
```suggestion
if not dag:
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]