limit_max_requests
is not working?
#2412
Unanswered
lukasugar
asked this question in
Potential Issue
Replies: 1 comment
-
When the request reaches the value of This value can be exceeded because the event loop cannot schedule the You can use uvicorn >= 0.30.0 #2183, the new process manager restarts the process when the maximum request limit is reached (the child process exits and the new process manager start a child process). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to restart workers (or server) when a certain number of requests in hit.
I'm trying to use
limit_max_requests
for that.Here's the code snippet:
I can still submit many more requests than 5:
So my questions are:
limit_max_requests
stop or restart it?I'm using MacOS, and these packages:
Beta Was this translation helpful? Give feedback.
All reactions