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

   > deadlines are pruned only when the dagrun succeeds. In case dagrun fails 
the deadline remains in the db to be picked up by the scheduler to handle 
deadline miss.
   
   That is the expected behavior, yes.
   
   Essentially the workflow is expected to be:
   
   When the dag run starts, check if there is a relevant deadline.  If so then 
calculate and store that timestmp.
   Each scheduler pass, check if any of those timestamps are int he past and 
handle them
   When the dag run finishes, if it finished before the deadline then remove 
the deadline as it is no longer needed.
   
   
   I remember @ramitkataria was tinkering with the prune logic in 
https://github.com/apache/airflow/pull/57215 and I was refactoring the database 
in https://github.com/apache/airflow/pull/58248.   If you are willing to look 
into it, I'd appreciate the help and suggest those as good places to start.  
Feel free to message me on Slack if you want to ask anything, I'm using the 
same handle there.


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