Skip to content

Commit abc2a5f

Browse files
committed
Revert "Move start_doing_background_updates() to SynapseHomeServer.start_background_tasks() (#19036)"
This reverts commit d399d76.
1 parent ec7554b commit abc2a5f

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

changelog.d/19036.misc

Lines changed: 0 additions & 1 deletion
This file was deleted.

synapse/app/homeserver.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,6 @@ def start_listening(self) -> None:
317317
# during parsing
318318
logger.warning("Unrecognized listener type: %s", listener.type)
319319

320-
def start_background_tasks(self) -> None:
321-
super().start_background_tasks()
322-
323-
self.get_datastores().main.db_pool.updates.start_doing_background_updates()
324-
325320

326321
def load_or_generate_config(argv_options: List[str]) -> HomeServerConfig:
327322
"""
@@ -435,6 +430,11 @@ async def _start_when_reactor_running() -> None:
435430

436431
await _base.start(hs, freeze)
437432

433+
# TODO: This should be moved to `SynapseHomeServer.start_background_tasks` (not
434+
# `HomeServer.start_background_tasks`) (this way it matches the behavior of only
435+
# running on `main`)
436+
hs.get_datastores().main.db_pool.updates.start_doing_background_updates()
437+
438438
# Register a callback to be invoked once the reactor is running
439439
register_start(hs, _start_when_reactor_running)
440440

0 commit comments

Comments
 (0)