diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2020-10-07 11:27:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-07 11:27:56 -0400 |
commit | e4f72ddc44367d0cd53e6cfc5ba310b6f55319b6 (patch) | |
tree | 76bdb1d3a71e35aee33af0e8c2d3704476591340 /synapse/storage/databases/main/roommember.py | |
parent | Include the configured log level in phone home stats. (#8477) (diff) | |
download | synapse-e4f72ddc44367d0cd53e6cfc5ba310b6f55319b6.tar.xz |
Move additional tasks to the background worker (#8458)
Diffstat (limited to 'synapse/storage/databases/main/roommember.py')
-rw-r--r-- | synapse/storage/databases/main/roommember.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/roommember.py b/synapse/storage/databases/main/roommember.py index bae1bd22d3..20fcdaa529 100644 --- a/synapse/storage/databases/main/roommember.py +++ b/synapse/storage/databases/main/roommember.py @@ -61,7 +61,10 @@ class RoomMemberWorkerStore(EventsWorkerStore): self._check_safe_current_state_events_membership_updated_txn(txn) txn.close() - if self.hs.config.metrics_flags.known_servers: + if ( + self.hs.config.run_background_tasks + and self.hs.config.metrics_flags.known_servers + ): self._known_servers_count = 1 self.hs.get_clock().looping_call( run_as_background_process, |