mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-04 22:18:53 -04:00
Allow background tasks to be run on a separate worker. (#8369)
This commit is contained in:
parent
462e681c79
commit
62894673e6
19 changed files with 537 additions and 449 deletions
|
@ -49,7 +49,7 @@ class StatsHandler:
|
|||
# Guard to ensure we only process deltas one at a time
|
||||
self._is_processing = False
|
||||
|
||||
if hs.config.stats_enabled:
|
||||
if self.stats_enabled and hs.config.run_background_tasks:
|
||||
self.notifier.add_replication_callback(self.notify_new_event)
|
||||
|
||||
# We kick this off so that we don't have to wait for a change before
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue