def start_background_update(self, update_name, progress):
        # Clear the background update queue so that we will pick up the new
        # task on the next iteration of do_background_update.
        self._background_update_queue = []
        progress_json = json.dumps(progress)

        return self._simple_insert(
            "background_updates",
            {"update_name": update_name, "progress_json": progress_json}
        )
Starts a background update running.
dataset/ETHPy150Open matrix-org/synapse/synapse/storage/background_updates.py/BackgroundUpdateStore.start_background_update