mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-16 11:02:13 -04:00
Replace noop background updates with DELETE. (#12954)
Removes the `register_noop_background_update` and deletes the background updates directly in a delta file.
This commit is contained in:
parent
f68b5e5773
commit
53b77b203a
14 changed files with 62 additions and 146 deletions
|
@ -120,11 +120,6 @@ class StatsStore(StateDeltasStore):
|
|||
self.db_pool.updates.register_background_update_handler(
|
||||
"populate_stats_process_users", self._populate_stats_process_users
|
||||
)
|
||||
# we no longer need to perform clean-up, but we will give ourselves
|
||||
# the potential to reintroduce it in the future – so documentation
|
||||
# will still encourage the use of this no-op handler.
|
||||
self.db_pool.updates.register_noop_background_update("populate_stats_cleanup")
|
||||
self.db_pool.updates.register_noop_background_update("populate_stats_prepare")
|
||||
|
||||
async def _populate_stats_process_users(
|
||||
self, progress: JsonDict, batch_size: int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue