Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid timeout errors with high concurrency in api_model #2307

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

dtrawins
Copy link

Longer timeout will avoid errors when running tests with high concurrency

@CLAassistant
Copy link

CLAassistant commented Sep 16, 2024

CLA assistant check
All committers have signed the CLA.

@baberabb
Copy link
Contributor

Thanks v. much for the PR. left a comment. Also cc: @artemorloff, as he had also made the change in #2249.

@@ -433,7 +433,9 @@ async def get_batched_requests(
) -> Union[List[List[str]], List[List[Tuple[float, bool]]]]:
ctxlens = ctxlens if ctxlens else [None] * len(requests)
conn = TCPConnector(limit=self._concurrent)
async with ClientSession(connector=conn) as session:
async with ClientSession(
connector=conn, timeout=ClientTimeout(total=6 * 60 * 60)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add this to the class constructor, so that's it configurable?

@baberabb
Copy link
Contributor

sorry @dtrawins . Forgot to commit the review message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants