mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-19 06:57:48 -04:00
Fix logcontexts for running pushers
First of all, avoid resetting the logcontext before running the pushers, to fix the "Starting db txn 'get_all_updated_receipts' from sentinel context" warning. Instead, give them their own "background process" logcontexts.
This commit is contained in:
parent
b4d6db5c4a
commit
66f7dc8c87
5 changed files with 28 additions and 21 deletions
|
@ -774,11 +774,8 @@ class EventCreationHandler(object):
|
|||
event, context=context
|
||||
)
|
||||
|
||||
# this intentionally does not yield: we don't care about the result
|
||||
# and don't need to wait for it.
|
||||
run_in_background(
|
||||
self.pusher_pool.on_new_notifications,
|
||||
event_stream_id, max_stream_id
|
||||
self.pusher_pool.on_new_notifications(
|
||||
event_stream_id, max_stream_id,
|
||||
)
|
||||
|
||||
def _notify():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue