MatrixSynapse/synapse/storage
Sean Quah 6121056740
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>
2022-03-16 15:07:41 +00:00
..
databases Add some missing type hints to cache datastore. (#12216) 2022-03-16 10:37:04 -04:00
engines
schema Remove unnecessary pass statements. (#12206) 2022-03-11 07:06:21 -05:00
util
__init__.py
_base.py Invalidate the get_users_in_room{_with_profile} caches only when necessary. (#11878) 2022-02-02 12:24:07 -05:00
background_updates.py Add config settings for background update parameters (#11980) 2022-03-11 10:46:45 -08:00
database.py Handle cancellation in `DatabasePool.runInteraction()` (#12199) 2022-03-16 15:07:41 +00:00
keys.py
persist_events.py Minor typing fixes for `synapse/storage/persist_events.py` (#12069) 2022-02-25 10:19:49 +00:00
prepare_database.py
purge_events.py
push_rule.py
relations.py Remove backwards compatibility with RelationPaginationToken. (#12138) 2022-03-04 07:10:10 -05:00
roommember.py
state.py Fix type of `events` in `StateGroupStorage` and `StateHandler` (#12156) 2022-03-04 10:25:18 +00:00
types.py