diff options
author | Sean Quah <seanq@element.io> | 2022-03-09 17:39:52 +0000 |
---|---|---|
committer | Sean Quah <seanq@element.io> | 2022-03-09 17:49:47 +0000 |
commit | 9ee876193481aebe0f252c753813476017028a8d (patch) | |
tree | f17624af829c118271bd2b66fc8966f3de3e7a7b /docker | |
parent | Add tests for database callbacks after cancellation (diff) | |
download | synapse-github/squah/cancel_disconnected_requests.tar.xz |
Handle cancellation in `DatabasePool.runInteraction()` github/squah/cancel_disconnected_requests squah/cancel_disconnected_requests
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 above 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 'docker')
0 files changed, 0 insertions, 0 deletions