Open InterferencePattern opened 6 months ago
It seems that UvicornWorker doesn't run notify()
on every request, so gunicorn
is interpreting the worker as unresponsive.
I can verify that I'm still seeing this with my quart app.
The @app.after_serving
function runs successfully, the worker produces no more logs, and yet I end up with SIGABRT messages very frequently (though not every time.)
I have gunicorn managing a Flask app run using the following docker command
Looking at the STDOUT I see that there's an issue when restarting the worker with max requests: It times out after it appears to have successfully killed the worker. Does anyone have an idea what could be causing the timeout? I see that kafka is timing out, but if that were the issue I'd expect not to see "Application shutdown complete." or "Finished server process"