def cache_run(self, model_id: str, run_json_path: Path) -> None:
        """Cache run json to shared cache."""
        try:
            run_blob = f"{model_id}/run.json"
            self._upload_file_to_blob(run_json_path, run_blob)
            logger.debug("Cached run %s to shared cache.", model_id)
        except Exception:
            logger.exception("Failed to cache run to shared cache.")
            # delete all uploaded files if any upload fails
            try:
                self.container_client_factory.delete_blob(model_id)
            except Exception:
                logger.exception(
                    "Upload model to shared cache failed. There might be some dirty files in the shared cache."
                    "Please manually clean up. %s",
                    model_id,
                )
Cache run json to shared cache.
olive/cache.py