Skip to content

Commit

Permalink
wait
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-langchain committed Dec 13, 2024
1 parent b76e662 commit efa4bd6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions python/langsmith/_internal/_background_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,11 @@ def keep_thread_active() -> bool:
if final_data_stream is not None:
try:
concurrent.futures.wait(
HTTP_REQUEST_THREAD_POOL.submit(
client._send_compressed_multipart_req, final_data_stream
)
[
HTTP_REQUEST_THREAD_POOL.submit(
client._send_compressed_multipart_req, final_data_stream
)
]
)
except RuntimeError:
client._send_compressed_multipart_req(final_data_stream)
Expand Down

0 comments on commit efa4bd6

Please sign in to comment.