def METHOD_NAME(self, data: dict, **kwargs):
    soc_targets: list[dict[str, datetime | float]] | None = data.get("soc_targets")
    if not soc_targets:
        return
    max_server_horizon = current_app.config.get("FLEXMEASURES_MAX_PLANNING_HORIZON")
    if isinstance(max_server_horizon, int):
        max_server_horizon *= self.sensor.event_resolution
    max_target_datetime = max([target["datetime"] for target in soc_targets])
    max_server_datetime = self.start + max_server_horizon
    if max_target_datetime > max_server_datetime:
        current_app.logger.warning(
            f"Target datetime exceeds {max_server_datetime}. Maximum scheduling horizon is {max_server_horizon}."
        )