yuqian90 opened a new pull request #16681:
URL: https://github.com/apache/airflow/pull/16681


   closes: #16680
   
   This PR makes sure that when a user clears a running task, the task does not 
fail. Instead it is killed and retried gracefully.
   
   This is done by introducing a new State called `CLEARED_WHEN_RUNNING`. As 
the name suggests, a `TaskInstance` is set to this state when it's cleared 
while running. Most of the places handles `CLEARED_WHEN_RUNNING` the same way 
`SHUTDOWN` is handled, except in `TaskInstance.is_eligible_to_retry`, where it 
is always be treated as eligible for retry.
   
   


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