Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis committed Oct 24, 2024
1 parent 9387e69 commit 410f334
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions python/langsmith/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1740,6 +1740,8 @@ def _send_multipart_req(
logger.warning(f"Failed to multipart ingest runs: {exc_desc}")
except Exception:
logger.warning(f"Failed to multipart ingest runs: {repr(e)}")
# do not retry by default
return

def update_run(
self,
Expand Down
2 changes: 1 addition & 1 deletion python/tests/integration_tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ def test_multipart_ingest_runs_create_wrong_type(
langchain_client.multipart_ingest_runs(create=runs_to_create, update=[])

# this should 422
assert len(caplog.records)
assert len(caplog.records) == 1, "Should get 1 warning for 422, not retried"
assert all("422" in record.message for record in caplog.records)


Expand Down

0 comments on commit 410f334

Please sign in to comment.