Skip to content

Commit

Permalink
Prevent _run_request_notifier() uncatched exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
pentschev committed Oct 5, 2023
1 parent 24d8a2d commit 7590ec0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/ucxx/_lib_async/notifier_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


async def _run_request_notifier(worker):
worker.run_request_notifier()
return worker.run_request_notifier()


async def _notifier_coroutine(worker):
Expand Down Expand Up @@ -58,4 +58,7 @@ def _notifierThread(event_loop, worker, q):
try:
task.result(0.01)
except TimeoutError:
task.cancel()
logger.debug("Notifier Thread Result Timeout")
except Exception as e:
logger.debug(f"Notifier Thread Result Exception: {e}")

0 comments on commit 7590ec0

Please sign in to comment.