Logging the BaseException inside the cancel_task.

This commit is contained in:
Filipi Fuchter
2025-06-23 18:48:44 -03:00
parent 74280829fc
commit d0bd563d42

View File

@@ -176,6 +176,9 @@ class TaskManager(BaseTaskManager):
pass
except Exception as e:
logger.exception(f"{name}: unexpected exception while cancelling task: {e}")
except BaseException as e:
logger.critical(f"{name}: fatal base exception while cancelling task: {e}")
raise
finally:
self._remove_task(task)