summary refs log tree commit diff
path: root/synapse/storage/databases/main
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2020-10-16 12:06:17 -0400
committerGitHub <noreply@github.com>2020-10-16 12:06:17 -0400
commit1b70662be902e153759a26b3e97f1081d9f8c4bc (patch)
treec686641b2192d94806763f0b68dc99328407f814 /synapse/storage/databases/main
parentAdd .venv* to .gitignore (#8566) (diff)
downloadsynapse-1b70662be902e153759a26b3e97f1081d9f8c4bc.tar.xz
Clean-up old transaction IDs on the background worker. (#8544)
Diffstat (limited to 'synapse/storage/databases/main')
-rw-r--r--synapse/storage/databases/main/events_worker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/storage/databases/main/events_worker.py b/synapse/storage/databases/main/events_worker.py
index ff150f0be7..0ad9a19b3d 100644
--- a/synapse/storage/databases/main/events_worker.py
+++ b/synapse/storage/databases/main/events_worker.py
@@ -137,7 +137,7 @@ class EventsWorkerStore(SQLBaseStore):
                     db_conn, "events", "stream_ordering", step=-1
                 )
 
-        if not hs.config.worker.worker_app:
+        if hs.config.run_background_tasks:
             # We periodically clean out old transaction ID mappings
             self._clock.looping_call(
                 run_as_background_process,