File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff 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
326321def 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
You can’t perform that action at this time.
0 commit comments