ferruzzi commented on issue #60927:
URL: https://github.com/apache/airflow/issues/60927#issuecomment-3893841813

   >  If this is expected behavior to run deadline alerts on failed dagruns too 
then I think this can be a document issue or closed as expected behavior.
   
   The only case where that deadline callback does not fire is if the dagrun 
reaches a success state before the set time. (Technically also if the dagrun is 
removed from the database entirely while it is still running, but that's 
something of an edge case)
   
   In the code, the deadline time is calculated when the dagrun is created and 
stored in the database.  When the dagrun reaches a SUCCESS state, if it is 
before the deadline time, the relevant calculated times are removed from the 
list.  Every scheduler loop, we check if there are any deadlines which have 
passed and trigger their callbacks.   
   
   If this isn't how you understand it and you feel the documentation could be 
improved, can you submit a PR with your suggestions?  


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