ferruzzi commented on code in PR #51638:
URL: https://github.com/apache/airflow/pull/51638#discussion_r2155451324


##########
airflow-core/src/airflow/models/dag.py:
##########
@@ -463,6 +464,15 @@ def validate_executor_field(self):
                         "update the executor configuration for this task."
                     )
 
+    def get_dagrun_creation_deadlines(self) -> DeadlineAlert | None:
+        """If the DAG has a deadline related to DagRun, return it; else return 
None."""
+        if (
+            not (deadline := self.deadline)
+            or type(deadline.reference) not in 
DeadlineReference.TYPES.DAGRUN_CREATED

Review Comment:
   Nevermind, I'll just make the change.



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