forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix list dags command for get_dagmodel is None (apache#36739)
* Fix list dag command for get_dagmodel is None In the dags list command, we initially retrieve the dag_id from the dagbag. For each DAG, we fetch the corresponding DAG details from the metadata database. If the data at both locations is not in sync, the DagModel.get_dagmodel function returns None, leading to a serialization failure. This PR trying to use the field available from dagbag to initialise dag details. some fields are not available and I'm setting the None value for those
- Loading branch information
1 parent
aa25aff
commit fd68f05
Showing
2 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters