jedcunningham commented on code in PR #45371:
URL: https://github.com/apache/airflow/pull/45371#discussion_r1901927901
##########
airflow/models/dagbundle.py:
##########
@@ -41,3 +47,8 @@ class DagBundleModel(Base):
def __init__(self, *, name: str):
self.name = name
+
+ @staticmethod
+ @provide_session
+ def get(name: str, session: Session = NEW_SESSION) -> DagBundleModel:
+ return session.query(DagBundleModel).get(name)
Review Comment:
In fact, we'd likely need to do this sooner than later anyways 👍
--
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]