-
Notifications
You must be signed in to change notification settings - Fork 44
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
Allow Timeout Configuration for web_server_proxy #2752
Comments
bump |
Hi, it's not quite clear what you're doing when you're running into this timeout. A simple example would be helpful. Have you seen our docs on request timeouts with web endpoint functions? They have some suggested patterns for putting a long-running process behind a web endpoint interface. Also we're typically faster to respond on modal.com/slack if you'd like to continue the conversation there. The GitHub issues are infrequently monitored by a small team, whereas others will see the question on Slack and can weigh in. |
I am posting here because I have not found success in solving my problem in slack. Here's my message there:
Advai Pal tried his best to help me, but the only solution he offered me was another slack user's crutch method of using two windows and clicking them alternately.
In the end, one wants a more concrete solution, such as a configuration option. |
The web_server_proxy function in Modal, designed to proxy requests to a local web server, currently uses a hardcoded timeout of 3600 seconds (1 hour) within its internal aiohttp.ClientSession. This fixed timeout presents challenges when proxying requests to services that might require longer processing times, such as those involving machine learning model training or extensive data operations.
This lack of configurability can lead to premature termination of requests that exceed the one-hour limit, disrupting long-running tasks and negatively impacting user experience.
Proposed Solution:
Introduce a mechanism to allow customization of the
aiohttp.ClientTimeout
used withinweb_server_proxy
.Introduce a global or app-level configuration option: This would allow setting a default timeout for all
web_server_proxy
instances within an application.modal-client/modal/_asgi.py
Line 323 in b61aed4
The text was updated successfully, but these errors were encountered: