summary refs log tree commit diff
path: root/docker
diff options
context:
space:
mode:
authorSean Quah <seanq@element.io>2022-03-09 17:39:52 +0000
committerSean Quah <seanq@element.io>2022-03-09 17:49:47 +0000
commit9ee876193481aebe0f252c753813476017028a8d (patch)
treef17624af829c118271bd2b66fc8966f3de3e7a7b /docker
parentAdd tests for database callbacks after cancellation (diff)
downloadsynapse-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