From 176c77f2e457b5e4805e419c215df6f832070069 Mon Sep 17 00:00:00 2001 From: jordanrfrazier <122494242+jordanrfrazier@users.noreply.github.com> Date: Mon, 29 Jan 2024 12:04:35 -0800 Subject: [PATCH] increase langsmith run timeout from 15s to 30s (#248) --- ragstack-e2e-tests/e2e_tests/test_utils/tracing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ragstack-e2e-tests/e2e_tests/test_utils/tracing.py b/ragstack-e2e-tests/e2e_tests/test_utils/tracing.py index 7efb86392..68d4c3491 100644 --- a/ragstack-e2e-tests/e2e_tests/test_utils/tracing.py +++ b/ragstack-e2e-tests/e2e_tests/test_utils/tracing.py @@ -8,15 +8,15 @@ def record_langsmith_sharelink( - run_id: str, record_property: Callable, tries: int = 5 + run_id: str, record_property: Callable, tries: int = 6 ) -> None: try: sharelink = LANGSMITH_CLIENT.share_run(run_id) record_property("langsmith_url", sharelink) logging.info(f"recorded langsmith link: {sharelink}") except Exception as e: - # runs take a second to show up in the api + # runs may take a while to be discoverable if tries < 0: raise e - time.sleep(3) + time.sleep(5) record_langsmith_sharelink(run_id, record_property, tries - 1)