eladkal commented on code in PR #70804:
URL: https://github.com/apache/airflow/pull/70804#discussion_r3690081243


##########
airflow-core/src/airflow/api_fastapi/core_api/routes/ui/deadlines.py:
##########
@@ -177,6 +177,7 @@ def get_dag_deadline_alerts(
         select(SerializedDagModel)
         .where(SerializedDagModel.dag_id == dag_id)
         .order_by(SerializedDagModel.id.desc())
+        .limit(1)

Review Comment:
   I think limit 1 is right but is it right to always use the latest? I think 
there are backfil usecases where user ask to run older versions isn't 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