You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question. When using gunicorn + eventlet + Flask app, and setting max_requests = 100 and max_requests_jitter = 80, I found that when the maximum number of requests is reached, the worker process is killed as expected, but it does not restart. After investigation, it was found that while os.read(self.PIPE[0], 1): was blocked. After troubleshooting, the following code modification resolved the issue.
Try spelling out the change you tried in diff -u format. select.error was deprecated 14 years ago and is not useful in any supported Python version. Are you running an old, or locally modified, version of Gunicorn?
Try spelling out the change you tried in diff -u format. select.error was deprecated 14 years ago and is not useful in any supported Python version. Are you running an old, or locally modified, version of Gunicorn?
I have a question. When using gunicorn + eventlet + Flask app, and setting max_requests = 100 and max_requests_jitter = 80, I found that when the maximum number of requests is reached, the worker process is killed as expected, but it does not restart. After investigation, it was found that while os.read(self.PIPE[0], 1): was blocked. After troubleshooting, the following code modification resolved the issue.
The main change was adding timeout behavior. Will there be any other impacts?
The text was updated successfully, but these errors were encountered: