Open Nsbikes opened 2 months ago
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?
If you are trying something new, beware that "New usages of eventlet are now heavily discouraged!".
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?If you are trying something new, beware that "New usages of eventlet are now heavily discouraged!".
In the problem description, I did not use a locally modified version of gunicorn.
Here are the version numbers of the relevant packages I am using:
gunicorn==22.0.0
eventlet==0.35.2
Flask_SocketIO==5.3.5
flasgger==0.9.7.1
Flask==2.3.2
Flask_Cors==4.0.0
Flask_JWT_Extended==4.5.2
pycryptodome==3.18.0
pymongo==4.4.0
pyodbc==4.0.39
PyYAML==6.0
sqlalchemy==2.0.20
cryptography==39.0.1
apscheduler==3.10.4
redis==5.0.1
dacite==1.8.1
pydantic==2.4.2
python-magic==0.4.27
textract==1.6.5
jieba==0.42.1
elasticsearch==8.11.1
requests==2.31.0
scp==0.14.5
cn2an==0.5.22
requests==2.31.0
js2py==0.74
pypinyin==0.50.0
celery==5.3.6
gmssl==3.2.2
psycopg2-binary==2.9.9
selenium==4.22.0
webdriver-manager==4.0.1
Could you please check if there is any incorrect reference or other issues?
Could the problem be that the current version of gunicorn does not support a relatively newer version of eventlet (i.e., eventlet==0.35.2)?
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?