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

enhancement: make timeout configurable for bento cloud pulls #4928

Open
holzweber opened this issue Aug 22, 2024 · 1 comment
Open

enhancement: make timeout configurable for bento cloud pulls #4928

holzweber opened this issue Aug 22, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@holzweber
Copy link
Contributor

Describe the bug

I try to load a bento with 50 models from yatai. I always run into timeouts.
If it would be possible to set the timeout configuration in the Client, the error would be solved:

self.session = httpx.Client(timeout=60)

To reproduce

bentoml pull myBento:r6lk63tamwm7dit7 --verbose

Expected behavior

Download the bento without timeout

Environment

bentoml: v1.3.2
platform: windows

@holzweber holzweber added the bug Something isn't working label Aug 22, 2024
@holzweber holzweber changed the title bug: timeout problems when pulling from yatai - timeout always set to 60sek enhancement: make timeout configurable for bento cloud pulls Aug 25, 2024
@frostming
Copy link
Contributor

Now you can customize the timeout by passing it to BentoCloudClient:

import bentoml

client = bentoml.cloud.BentoCloudClient(timeout=300)
client.bento.pull("myBento:r6lk63tamwm7dit7")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants