Skip to content

Commit

Permalink
increase langsmith run timeout from 15s to 30s (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanrfrazier authored Jan 29, 2024
1 parent d28cc43 commit 176c77f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ragstack-e2e-tests/e2e_tests/test_utils/tracing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 176c77f

Please sign in to comment.