kalluripradeep opened a new pull request, #67371:
URL: https://github.com/apache/airflow/pull/67371

   Brief description of the changes.
   
   closes: #67238
   closes: #65366
   
   When a task fails from states like QUEUED or DEFERRED, or is failed by the 
executor or trigger, its state is not RUNNING. The history recording in 
`fetch_handle_failure_context` incorrectly assumed that only RUNNING tasks 
needed their history recorded, which led to missing tries in 
`task_instance_history` when `CeleryExecutor` or `KubernetesExecutor` failed 
tasks or triggers failed them. Now, we record history for all states except 
`RESTARTING` (since `RESTARTING` tasks were already cleared and had their 
history recorded).
   
   ---


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