pingzh commented on a change in pull request #21877:
URL: https://github.com/apache/airflow/pull/21877#discussion_r838802636



##########
File path: airflow/models/serialized_dag.py
##########
@@ -250,6 +250,13 @@ def has_dag(cls, dag_id: str, session: Session = None) -> 
bool:
         """
         return session.query(literal(True)).filter(cls.dag_id == 
dag_id).first() is not None
 
+    @classmethod
+    def get_dag(cls, dag_id: str) -> Optional['SerializedDAG']:

Review comment:
       good call. let me add it




-- 
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]


Reply via email to