def _background_update_progress_txn(self, txn, update_name, progress):

        progress_json = json.dumps(progress)

        self._simple_update_one_txn(
            txn,
            "background_updates",
            keyvalues={"update_name": update_name},
            updatevalues={"progress_json": progress_json},
        )
Update the progress of a background update
dataset/ETHPy150Open matrix-org/synapse/synapse/storage/background_updates.py/BackgroundUpdateStore._background_update_progress_txn