dheerajturaga opened a new issue, #49330: URL: https://github.com/apache/airflow/issues/49330
### Apache Airflow version 3.0.0 ### If "Other Airflow 2 version" selected, which one? _No response_ ### What happened? When developing dags, `airflow dags list` and `airflow dags list-import-errors` return `No data found` when the database has just been initialized. Also any update to the dags aren't reflected with these commands unless you run `airflow dags reserialize`. This is a serious problem as these commands are used widely in dag development. This is happening because these commands are reading from the db rather than tracking the local dagbag. `DagBag(read_dags_from_db=True)` ### What you think should happen instead? Given we are always reading from the db in the case of `list` and `list-import-errors` we need to run `reserialize` before fetching these values from the database ### How to reproduce Seed a basic dag in the dags directory and run. Just use the defaults. ``` airflow db migrate airflow dags list ``` ### Operating System Ubuntu 24.04.1 LTS ### Versions of Apache Airflow Providers _No response_ ### Deployment Virtualenv installation ### Deployment details _No response_ ### Anything else? _No response_ ### Are you willing to submit PR? - [x] Yes I am willing to submit a PR! ### Code of Conduct - [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md) -- 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]
