Skip to content

Commit

Permalink
Merge branch 'main' into fix-deadlocks-in-batching
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmith023 authored Jan 8, 2025
2 parents 252d86f + 38d52aa commit ce970b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements-devel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ importlib_metadata==8.5.0

pytest==8.3.4
pytest-cov==6.0.0
pytest-asyncio==0.24.0
pytest-asyncio==0.25.1
pytest-benchmark==5.1.0
pytest-profiling==1.8.1
coverage==7.6.10
Expand Down
7 changes: 5 additions & 2 deletions weaviate/event_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,11 @@ def patch_exception_handler(loop: asyncio.AbstractEventLoop) -> None:

def exception_handler(loop: asyncio.AbstractEventLoop, context: Dict[str, Any]) -> None:
if "exception" in context:
err = f"{type(context['exception']).__name__}: {context['exception']}"
if "BlockingIOError: [Errno 35] Resource temporarily unavailable" == err:
if type(
context["exception"]
).__name__ == "BlockingIOError" and "Resource temporarily unavailable" in str(
context["exception"]
):
return
loop.default_exception_handler(context)

Expand Down

0 comments on commit ce970b4

Please sign in to comment.