Skip to content

Commit

Permalink
Merge pull request #1381 from weaviate/grpc/patch-exception-handler-i…
Browse files Browse the repository at this point in the history
…n-each-process-event-loop

Ensure each per-process event loop has its exception handler patched properly
  • Loading branch information
tsmith023 authored Nov 1, 2024
2 parents e004801 + 6bc9b39 commit 63d7c6c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion weaviate/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ def __init__(
self._event_loop = _EventLoopSingleton.get_instance()
assert self._event_loop.loop is not None
self._loop = self._event_loop.loop
_EventLoop.patch_exception_handler(self._loop)

super().__init__(
connection_params=connection_params,
Expand Down
1 change: 1 addition & 0 deletions weaviate/event_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def start(self) -> None:
if self.loop is not None:
return
self.loop = self.__start_new_event_loop()
_EventLoop.patch_exception_handler(self.loop)

def run_until_complete(
self, f: Callable[P, Coroutine[Any, Any, T]], *args: P.args, **kwargs: P.kwargs
Expand Down

0 comments on commit 63d7c6c

Please sign in to comment.