diff --git a/python/langsmith/client.py b/python/langsmith/client.py index 7cff881c4..4b7659d2c 100644 --- a/python/langsmith/client.py +++ b/python/langsmith/client.py @@ -784,7 +784,7 @@ def upload_csv( @staticmethod def _run_transform( - run: Union[ls_schemas.Run, dict, ls_schemas.RunLikeDict] + run: Union[ls_schemas.Run, dict, ls_schemas.RunLikeDict], ) -> dict: if hasattr(run, "dict") and callable(getattr(run, "dict")): run_create = run.dict() # type: ignore @@ -3193,6 +3193,10 @@ def _tracing_thread_handle_batch( update = [it.item for it in batch if it.action == "update"] try: client.batch_ingest_runs(create=create, update=update, pre_sampled=True) + except Exception: + # exceptions are logged elsewhere, but we need to make sure the + # background thread continues to run + pass finally: for _ in batch: tracing_queue.task_done() diff --git a/python/pyproject.toml b/python/pyproject.toml index fcd380a6f..ca913591e 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langsmith" -version = "0.0.84" +version = "0.0.85" description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform." authors = ["LangChain "] license = "MIT"