github-actions[bot] opened a new pull request, #77802:
URL: https://github.com/apache/airflow/pull/77802

   Clearing a deferred task, or marking it failed or succeeded, makes the
   triggerer cancel its trigger and run on_kill() for up to
   [triggerer] on_kill_timeout (30 seconds by default). The supervisor keeps
   sending the trigger id in every state sync, about once per second, until
   the trigger reports finished, and the runner cancelled the trigger task
   again on each of those syncs. The second cancellation landed inside the
   awaited on_kill() and aborted it, so cleanup such as deleting a pod or
   stopping a remote job was cut off after roughly one second and could
   leave external resources running.
   
   Those repeats were also what stopped a trigger that lost its first
   cancellation, for example to a library that swallows CancelledError or to
   asyncio.wait_for() on Python 3.11, so a trigger task that outlives the
   on_kill() grace still needs to be cancelled again.
   (cherry picked from commit ccf0e9a65fd170704ac9889b644b1ca118731ac2)
   
   Co-authored-by: Hussein Awala <[email protected]>


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