mirror of
https://mau.dev/maunium/synapse.git
synced 2024-08-26 20:22:22 +00:00
Clean-up old transaction IDs on the background worker. (#8544)
This commit is contained in:
parent
c8e9dc4cf4
commit
1b70662be9
1
changelog.d/8544.feature
Normal file
1
changelog.d/8544.feature
Normal file
@ -0,0 +1 @@
|
|||||||
|
Allow running background tasks in a separate worker process.
|
@ -137,7 +137,7 @@ class EventsWorkerStore(SQLBaseStore):
|
|||||||
db_conn, "events", "stream_ordering", step=-1
|
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
|
# We periodically clean out old transaction ID mappings
|
||||||
self._clock.looping_call(
|
self._clock.looping_call(
|
||||||
run_as_background_process,
|
run_as_background_process,
|
||||||
|
Loading…
Reference in New Issue
Block a user