Logging the BaseException inside the cancel_task.
This commit is contained in:
@@ -176,6 +176,9 @@ class TaskManager(BaseTaskManager):
|
|||||||
pass
|
pass
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.exception(f"{name}: unexpected exception while cancelling task: {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:
|
finally:
|
||||||
self._remove_task(task)
|
self._remove_task(task)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user