ashb commented on code in PR #54721:
URL: https://github.com/apache/airflow/pull/54721#discussion_r2288081575
##########
airflow-core/src/airflow/models/serialized_dag.py:
##########
@@ -472,9 +472,9 @@ def latest_item_select_object(cls, dag_id):
return select(cls).where(cls.dag_id ==
dag_id).order_by(cls.created_at.desc()).limit(1)
@classmethod
- @provide_session
+ @provide_readonly_session
def get_latest_serialized_dags(
- cls, *, dag_ids: list[str], session: Session = NEW_SESSION
+ cls, *, dag_ids: list[str], session: Session = NEW_READONLY_SESSION
Review Comment:
(I know this is draft and to go with the AIP, so I haven't looked much
beyond this)
--
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]