postgres LockError… how to investigate
问题 Hi I am using gunicorn with nginx and a postgreSQL database to run my web app. I recently change my gunicorn command from gunicorn run:app -w 4 -b 0.0.0.0:8080 --workers=1 --timeout=300 to gunicorn run:app -w 4 -b 0.0.0.0:8080 --workers=2 --timeout=300 using 2 workers. Now I am getting error messages like File "/usr/local/lib/python2.7/dist-packages/flask_sqlalchemy/__init__.py", line 194, in session_signal_after_commit models_committed.send(session.app, changes=list(d.values())) File "/usr