def finalize(self):
        # if cases were changed we should purge the sync token cache
        # this ensures that ledger updates will sync back down
        if self.relevant_cases and self.xform.get_sync_token():
            self.xform.get_sync_token().invalidate_cached_payloads()
Finalize anything else that needs to happen - this runs after models are saved.
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/commtrack/processing.py/StockProcessingResult.finalize