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

Commit b1cfaf0

Browse files
authored
Merge pull request #7133 from matrix-org/erikj/fix_worker_startup
Fix starting workers when federation sending not split out.
2 parents 39230d2 + d6828c1 commit b1cfaf0

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

changelog.d/7133.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix starting workers when federation sending not split out.

synapse/app/generic_worker.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,6 +875,9 @@ def start(config_options):
875875

876876
# Force the appservice to start since they will be disabled in the main config
877877
config.notify_appservices = True
878+
else:
879+
# For other worker types we force this to off.
880+
config.notify_appservices = False
878881

879882
if config.worker_app == "synapse.app.pusher":
880883
if config.start_pushers:
@@ -888,6 +891,9 @@ def start(config_options):
888891

889892
# Force the pushers to start since they will be disabled in the main config
890893
config.start_pushers = True
894+
else:
895+
# For other worker types we force this to off.
896+
config.start_pushers = False
891897

892898
if config.worker_app == "synapse.app.user_dir":
893899
if config.update_user_directory:
@@ -901,6 +907,9 @@ def start(config_options):
901907

902908
# Force the pushers to start since they will be disabled in the main config
903909
config.update_user_directory = True
910+
else:
911+
# For other worker types we force this to off.
912+
config.update_user_directory = False
904913

905914
if config.worker_app == "synapse.app.federation_sender":
906915
if config.send_federation:
@@ -914,6 +923,9 @@ def start(config_options):
914923

915924
# Force the pushers to start since they will be disabled in the main config
916925
config.send_federation = True
926+
else:
927+
# For other worker types we force this to off.
928+
config.send_federation = False
917929

918930
synapse.events.USE_FROZEN_DICTS = config.use_frozen_dicts
919931

0 commit comments

Comments
 (0)