diff options
author | Sean Quah <8349537+squahtx@users.noreply.github.com> | 2022-03-16 15:07:41 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 15:07:41 +0000 |
commit | 61210567405b1ac7efaa23d5513cc0b443da0a3a (patch) | |
tree | a097f4702f9e570cbc8ee3ff21ff408b69f2e4e1 /synapse/config/workers.py | |
parent | Add a relations handler to avoid duplication. (#12227) (diff) | |
download | synapse-61210567405b1ac7efaa23d5513cc0b443da0a3a.tar.xz |
Handle cancellation in `DatabasePool.runInteraction()` (#12199)
To handle cancellation, we ensure that `after_callback`s and `exception_callback`s are always run, since the transaction will complete on another thread regardless of cancellation. We also wait until everything is done before releasing the `CancelledError`, so that logging contexts won't get used after they have been finished. Signed-off-by: Sean Quah <seanq@element.io>
Diffstat (limited to 'synapse/config/workers.py')
0 files changed, 0 insertions, 0 deletions