ramitkataria commented on code in PR #53201:
URL: https://github.com/apache/airflow/pull/53201#discussion_r2201565559


##########
airflow-core/src/airflow/models/deadline.py:
##########
@@ -98,6 +107,33 @@ def _determine_resource() -> tuple[str, str]:
             f"{self.deadline_time} or run: {self.callback}({callback_kwargs})"
         )
 
+    def handle_miss(self, session: Session):
+        """Handle a missed deadline by creating and starting a trigger to run 
the callback."""
+        callback_func = import_string(self.callback)

Review Comment:
   I didn't think about that edge case. Do you have any suggestions for how 
else I could check to see if a callback is async?



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