uranusjr commented on code in PR #35249:
URL: https://github.com/apache/airflow/pull/35249#discussion_r1375372071
##########
airflow/models/dag.py:
##########
@@ -1375,6 +1375,11 @@ def get_is_paused(self, session=NEW_SESSION) -> None:
"""Return a boolean indicating whether this DAG is paused."""
return session.scalar(select(DagModel.is_paused).where(DagModel.dag_id
== self.dag_id))
+ @provide_session
+ def get_last_parsed_time(self, session=NEW_SESSION) -> None:
Review Comment:
This does not return None (well it can but not always) so the return type
annotation needs to be fixed. Otherwise looks good to me.
--
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]