ephraimbuddy commented on issue #14422:
URL: https://github.com/apache/airflow/issues/14422#issuecomment-812765167


   I have investigated this and fixed a solution but I'm not sure if we want it.
   
   Basically when a pod is deleted, it sends a SIGTERM signal to the task which 
gets killed while being prepared for execution. 
   
   Now, on_failure_callback is only called when tasks finishes executing. 
   My solution was to check if task has on_failure_callback when a SIGTERM is 
received and then execute the on_failure_callback.
   
   I'm skeptical about adding it because task was killed while being prepared 
for execution. 
   Does it make sense to add this? @kaxil @ashb 
   


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to