Re: [sqlalchemy] Seek for help - Python process stuck at _exec_once_mutex during first_connect in sqlalchemy/event/attr.py

2023-01-30 Thread Ping Zhang
upport SQLAlchemy 1.4 and above and remove this > old event handler. > > Finally, when the lock does actually occur youd also want to look at what > the actual database and/or proxy servers are up to, if these servers are > blocking new connections from proceeding, that would

[sqlalchemy] Seek for help - Python process stuck at _exec_once_mutex during first_connect in sqlalchemy/event/attr.py

2023-01-27 Thread Ping Zhang
Hi all, Our production system is experiencing a very strange behavior. At peak load, we see some of our python processes were stuck due to: * in* *with self._exec_once_mutex in sqlalchemy/event/attr.py*, (here is the full stack trace