jayceslesar commented on issue #36090:
URL: https://github.com/apache/airflow/issues/36090#issuecomment-2761947537

   @thesuperzapper is it not possible for operators to catch the 
`asyncio.CancelledError` in `execute_complete` ? Something like
   
   ```py
   def execute_complete(...):
       try:
           ...
       except asyncio.CancelledError:
           if context["ti"].state != TaskInstanceState.DEFERRED:
               self.on_kill()
   ```


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