Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
vowelparrot committed Jun 21, 2023
1 parent b42804b commit ea78fb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 0 additions & 4 deletions langchain/callbacks/tracers/langchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@

logger = logging.getLogger(__name__)
_LOGGED = set()
<<<<<<< Updated upstream
_TRACERS = []
=======
_TRACERS: List[LangChainTracer] = []
>>>>>>> Stashed changes


def log_error_once(method: str, exception: Exception) -> None:
Expand Down
5 changes: 4 additions & 1 deletion langchain/client/runner_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,10 @@ async def run_coroutine_with_semaphore(
*(run_coroutine_with_semaphore(function) for function in async_funcs)
)
while tracer_queue:
tracer = tracer_queue.get_nowait()
try:
tracer = tracer_queue.get_nowait()
except asyncio.QueueEmpty:
break
if tracer:
tracer.wait_for_futures()
return results
Expand Down

0 comments on commit ea78fb1

Please sign in to comment.