mirror of https://github.com/zulip/zulip.git
5904f2eb8d
Use the commit_on_success() context manager around the call to internal_send_message() inside of SlowQueryWorker's polling loop, so that the pending SELECT statement from get_status_dict_by_realm() gets committed. If we don't do this, postgres will hold locks on zerver_userprofile, and other tables, for a long time, which can interfere with migrations. This is an interim solution until we switch postgres's default commit behavior. Right now the default transaction isolation is "read committed," so SELECT statements lead to AccessShareLocks that do no get closed until the transaction finishes. (imported from commit f72aeffbbe71a731e327459f15bd7dbebaf9e0b8) |
||
---|---|---|
.. | ||
__init__.py | ||
queue_processors.py |