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

Commit

Permalink
Move pusherpool startup into _base.setup (#7104)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
richvdh committed Mar 19, 2020
1 parent 4a17a64 commit 443162e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/7104.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Merge worker apps together.
1 change: 1 addition & 0 deletions synapse/app/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ def handle_sighup(*args, **kwargs):
# It is now safe to start your Synapse.
hs.start_listening(listeners)
hs.get_datastore().db.start_profiling()
hs.get_pusherpool().start()

setup_sentry(hs)
setup_sdnotify(hs)
Expand Down
1 change: 0 additions & 1 deletion synapse/app/homeserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,6 @@ def start():

_base.start(hs, config.listeners)

hs.get_pusherpool().start()
hs.get_datastore().db.updates.start_doing_background_updates()
except Exception:
# Print the exception and bail out.
Expand Down

0 comments on commit 443162e

Please sign in to comment.