pankajastro commented on code in PR #36739:
URL: https://github.com/apache/airflow/pull/36739#discussion_r1450310695
##########
airflow/cli/commands/dag_command.py:
##########
@@ -375,15 +375,17 @@ def dag_list_dags(args, session=NEW_SESSION) -> None:
file=sys.stderr,
)
- def get_dag_detail(dag: DAG) -> dict:
+ def get_dag_detail(dag: DAG) -> dict | None:
dag_model = DagModel.get_dagmodel(dag.dag_id, session=session)
+ if not dag_model:
+ return None
Review Comment:
@ephraimbuddy I have tried to use the dag some fields are not available in
dag and only available in dagmodel for them I'm setting columns value as none.
PTAL
--
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]