This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
_run_push_actions_and_persist_event
re-starts a finished logging context when persist_events_and_notify
raises an exception
#12987
Labels
A-Federation
S-Tolerable
Minor significance, cosmetic issues, low or no impact to users.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
When
persist_events_and_notify
raises an exception, we try to clean up push actions in a background task:synapse/synapse/handlers/federation_event.py
Lines 1961 to 1969 in e3163e2
run_in_background
inherits the current logging context, but since we don't await the background task, we end up closing the logging context before the background task finishes. We ought to either awaitremove_push_actions_from_staging
directly, or create a logging context for it.The text was updated successfully, but these errors were encountered: