Skip to content

Commit

Permalink
Move pusherpool startup into _base.setup (matrix-org#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 authored and phil-flex committed Mar 27, 2020
1 parent 6825236 commit b911320
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 b911320

Please sign in to comment.