Skip to content

Commit b911320

Browse files
richvdhphil-flex
authored andcommitted
Move pusherpool startup into _base.setup (matrix-org#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.
1 parent 6825236 commit b911320

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

changelog.d/7104.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Merge worker apps together.

synapse/app/_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ def handle_sighup(*args, **kwargs):
276276
# It is now safe to start your Synapse.
277277
hs.start_listening(listeners)
278278
hs.get_datastore().db.start_profiling()
279+
hs.get_pusherpool().start()
279280

280281
setup_sentry(hs)
281282
setup_sdnotify(hs)

synapse/app/homeserver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,6 @@ def start():
408408

409409
_base.start(hs, config.listeners)
410410

411-
hs.get_pusherpool().start()
412411
hs.get_datastore().db.updates.start_doing_background_updates()
413412
except Exception:
414413
# Print the exception and bail out.

0 commit comments

Comments
 (0)