-
-
Notifications
You must be signed in to change notification settings - Fork 77
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 setting request timeout #277
Comments
@4n4nd let me know what you think about this. I can try to submit a PR, but I just wanted to confirm with you if you agree with the issue / proposed solution. |
yeah that seems like a reasonable solution. Could you please create a PR? |
FRosner
added a commit
to FRosner/prometheus-api-client-python
that referenced
this issue
Feb 28, 2024
FRosner
added a commit
to FRosner/prometheus-api-client-python
that referenced
this issue
Feb 28, 2024
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
We see requests getting stuck forever which blocks our app. The fix is to set a request timeout, which is not possible with the current APIs.
Describe the solution you'd like
I'd like the ability to provide a global timeout when creating the client, as well as the ability to override the timeout for each request.
Describe alternatives you've considered
I don't think there are good alternatives. You gotta be defensive towards requests getting stuck.
The text was updated successfully, but these errors were encountered: