Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerHYang committed Jul 31, 2024
1 parent 6149f42 commit 89fb7ef
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/phoenix/db/bulk_inserter.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,12 @@ async def _bulk_insert(self) -> None:
or self._spans
or self._evaluations
):
if self._operations.empty() and not (self._spans or self._evaluations):
if (
self._queue_inserters.empty
and self._operations.empty()
and not self._spans
and not self._evaluations
):
await asyncio.sleep(self._sleep)
continue
ops_remaining, events = self._max_ops_per_transaction, []
Expand Down

0 comments on commit 89fb7ef

Please sign in to comment.