Skip to content
Snippets Groups Projects
Unverified Commit 443162e5 authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

Move pusherpool startup into _base.setup (#7104)

This should be safe to do on all workers/masters because it is guarded by
a config option which will ensure it is only actually done on the worker
assigned as a pusher.
parent 4a17a647
No related branches found
No related tags found
No related merge requests found
Merge worker apps together.
...@@ -276,6 +276,7 @@ def start(hs, listeners=None): ...@@ -276,6 +276,7 @@ def start(hs, listeners=None):
# It is now safe to start your Synapse. # It is now safe to start your Synapse.
hs.start_listening(listeners) hs.start_listening(listeners)
hs.get_datastore().db.start_profiling() hs.get_datastore().db.start_profiling()
hs.get_pusherpool().start()
setup_sentry(hs) setup_sentry(hs)
setup_sdnotify(hs) setup_sdnotify(hs)
......
...@@ -408,7 +408,6 @@ def setup(config_options): ...@@ -408,7 +408,6 @@ def setup(config_options):
_base.start(hs, config.listeners) _base.start(hs, config.listeners)
hs.get_pusherpool().start()
hs.get_datastore().db.updates.start_doing_background_updates() hs.get_datastore().db.updates.start_doing_background_updates()
except Exception: except Exception:
# Print the exception and bail out. # Print the exception and bail out.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment