Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion weaviate/collections/batch/async_.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ async def __loop(self) -> None:
# wait for more objects to be added up to the batch size
await asyncio.sleep(refresh_time)
if time.time() - start >= 1 and (
len_o == len(self.__batch_objects) or len_r == len(self.__batch_references)
len_o == len(self.__batch_objects) and len_r == len(self.__batch_references)
):
# no new objects were added in the last second, exit the loop
break
Expand Down
2 changes: 1 addition & 1 deletion weaviate/collections/batch/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def __batch_send(self) -> None:
# shutdown was requested, exit the loop
break
if time.time() - start >= 1 and (
len_o == len(self.__batch_objects) or len_r == len(self.__batch_references)
len_o == len(self.__batch_objects) and len_r == len(self.__batch_references)
):
# no new objects were added in the last second, exit the loop
break
Expand Down
2 changes: 1 addition & 1 deletion weaviate/collections/batch/sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def __loop(self) -> None:
# wait for more objects to be added up to the batch size
time.sleep(refresh_time)
if time.time() - start >= 1 and (
len_o == len(self.__batch_objects) or len_r == len(self.__batch_references)
len_o == len(self.__batch_objects) and len_r == len(self.__batch_references)
):
# no new objects were added in the last second, exit the loop
break
Expand Down
Loading