summary refs log tree commit diff
path: root/synapse/groups/attestations.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2019-06-07 12:24:07 +0100
committerErik Johnston <erik@matrix.org>2019-06-07 12:25:06 +0100
commit837340bdce7d0175a8f5fae2c4ed34ac1334d431 (patch)
treee37d3de953f23b397cf5c8793cb77ed17319c914 /synapse/groups/attestations.py
parentMerge tag 'v1.0.0rc1' into develop (diff)
downloadsynapse-837340bdce7d0175a8f5fae2c4ed34ac1334d431.tar.xz
Only start background group attestation renewals on master
Diffstat (limited to 'synapse/groups/attestations.py')
-rw-r--r--synapse/groups/attestations.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/synapse/groups/attestations.py b/synapse/groups/attestations.py
index e5dda1975f..469ab8ac7b 100644
--- a/synapse/groups/attestations.py
+++ b/synapse/groups/attestations.py
@@ -132,9 +132,10 @@ class GroupAttestionRenewer(object):
         self.is_mine_id = hs.is_mine_id
         self.attestations = hs.get_groups_attestation_signing()
 
-        self._renew_attestations_loop = self.clock.looping_call(
-            self._start_renew_attestations, 30 * 60 * 1000,
-        )
+        if not hs.config.worker_app:
+            self._renew_attestations_loop = self.clock.looping_call(
+                self._start_renew_attestations, 30 * 60 * 1000,
+            )
 
     @defer.inlineCallbacks
     def on_renew_attestation(self, group_id, user_id, content):