synapse-product/synapse
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
..
_scripts Move synctl into synapse._scripts and expose as an entrypoint (#12140) 2022-03-04 11:58:49 +00:00
api Support stable identifiers for MSC3440: Threading (#12151) 2022-03-10 15:36:13 +00:00
app Deprecate the groups/communities endpoints and add an experimental configuration flag. (#12200) 2022-03-12 13:23:37 -05:00
appservice Rename various ApplicationServices interested methods (#11915) 2022-03-03 18:14:09 +00:00
config Fix dead link in spam checker warning (#12231) 2022-03-16 13:52:59 +00:00
crypto Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
events fix misleading comment in check_events_for_spam (#12203) 2022-03-10 09:40:07 -08:00
federation Deprecate the groups/communities endpoints and add an experimental configuration flag. (#12200) 2022-03-12 13:23:37 -05:00
groups Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
handlers Add a relations handler to avoid duplication. (#12227) 2022-03-16 10:39:15 -04:00
http Remove unnecessary pass statements. (#12206) 2022-03-11 07:06:21 -05:00
logging Use ParamSpec in type hints for synapse.logging.context (#12150) 2022-03-08 15:58:14 +00:00
metrics Use version string helper from matrix-common (#11979) 2022-02-14 13:12:22 +00:00
module_api Add third_party module callbacks to check if a user can delete a room and deactivate a user (#12028) 2022-03-09 18:23:57 +00:00
push Use the ignored_users table to test event visibility & sync. (#12225) 2022-03-15 14:06:05 -04:00
replication Improve code documentation for the typing stream over replication. (#12211) 2022-03-11 14:00:15 +00:00
res Update the SSO username picker template to comply with SIWA guidelines (#12210) 2022-03-11 13:20:00 +00:00
rest Add a relations handler to avoid duplication. (#12227) 2022-03-16 10:39:15 -04:00
server_notices Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
spam_checker_api Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
state Fix type of events in StateGroupStorage and StateHandler (#12156) 2022-03-04 10:25:18 +00:00
static Display an error page during failure of fallback UIA. (#10561) 2021-08-18 08:13:35 -04:00
storage Handle cancellation in DatabasePool.runInteraction() (#12199) 2022-03-16 15:07:41 +00:00
streams Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
util Add cancellation support to @cached and @cachedList decorators (#12183) 2022-03-14 19:04:29 +00:00
__init__.py Merge branch 'master' into develop 2022-03-08 15:37:35 +00:00
event_auth.py Remove excess condition on knock->leave check (#11900) 2022-02-22 18:35:01 +00:00
notifier.py Remove HomeServer.get_datastore() (#12031) 2022-02-23 11:04:02 +00:00
py.typed Mark Module API error imports as re-exported and mark Synapse as containing type annotations (#11054) 2021-10-13 08:42:41 +01:00
python_dependencies.py Use ParamSpec in type hints for synapse.logging.context (#12150) 2022-03-08 15:58:14 +00:00
server.py Add a relations handler to avoid duplication. (#12227) 2022-03-16 10:39:15 -04:00
types.py Add type hints to synapse/storage/databases/main (#11984) 2022-02-21 16:03:06 +00:00
visibility.py Use the ignored_users table to test event visibility & sync. (#12225) 2022-03-15 14:06:05 -04:00