Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Run things as background processes #3556

Merged
merged 3 commits into from
Jul 19, 2018
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Jul 18, 2018

This fixes #3518, and ensures that we get useful logs and metrics for lots of things that happen in the background.

(There are certainly more things that happen in the background; these are just the common ones I've found running a single-process synapse locally).

richvdh added 3 commits July 18, 2018 20:55
This fixes #3518, and ensures that we get useful logs and metrics for lots of
things that happen in the background.

(There are certainly more things that happen in the background; these are just
the common ones I've found running a single-process synapse locally).
This is more involved than it might otherwise be, because the current
implementation just drops its logcontexts and runs everything in the sentinel
context.

It turns out that we aren't actually using a bunch of the functionality here
(notably suppress_failures and the fact that Distributor.fire returns a
deferred), so the easiest way to fix this is actually by simplifying a bunch of
code.
@richvdh richvdh force-pushed the rav/background_processes branch from da162ae to 8c69b73 Compare July 18, 2018 21:15
@richvdh richvdh requested a review from a team July 19, 2018 08:42
@richvdh richvdh merged commit c754e00 into develop Jul 19, 2018
@richvdh richvdh deleted the rav/background_processes branch July 19, 2018 10:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants