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
In order to respond faster, I create an asynchronous thread (by "gevent.spawn" or "threading.Thread") to process the request after receiving it, and then respond directly. If the worker reaches the "max_requests" limit and starts to restart automatically, the asynchronous thread it created will also be forced to end (it is requesting other interfaces).
When it happens, there is only 'query started' in the log, no 'query done' or even 'query finished'.
My temporary solution is to set "max_requests" to 0. But this doesn't completely solve the problem, because when I need to update the code I still need to restart the worker.
The text was updated successfully, but these errors were encountered:
Django: 4.2.5
Gunicorn: 22.0.0
Gevent: 24.2.1
In order to respond faster, I create an asynchronous thread (by "gevent.spawn" or "threading.Thread") to process the request after receiving it, and then respond directly. If the worker reaches the "max_requests" limit and starts to restart automatically, the asynchronous thread it created will also be forced to end (it is requesting other interfaces).
When it happens, there is only 'query started' in the log, no 'query done' or even 'query finished'.
My temporary solution is to set "max_requests" to 0. But this doesn't completely solve the problem, because when I need to update the code I still need to restart the worker.
The text was updated successfully, but these errors were encountered: