You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
As it's the only function in the codebase to use the @preserve_fn decorator I'm a little suspicious that that may be the cause. Upon investigating the decorator though I don't see anything inherently wrong with it:
yes, it's the use of @preserve_fn that is the problem. It means that we can still be doing work within that function after the handle_presence_timeouts context has finished.
(Apart from the warning, it's bad in that it means that such work isn't making it into the prometheus CPU/database metrics.)
probably. there is a question to be answered over whether this work should run in the background at all, or if the caller should be waiting for it to complete.
When synapse is busy, we log the following warning:
It looks like the call to
FederationSender.send_presence
isn't setting up log contexts correctly.The text was updated successfully, but these errors were encountered: