(case, schedule, action_definition, rule)
:param case: the CommCareCase/SQL
    :param schedule: the AlertSchedule
    :param action_definition: the CreateScheduleInstanceActionDefinition that is
    causing the schedule instances to be refreshed
    :param rule: the AutomaticUpdateRule that is causing the schedule instances
    to be refreshed
:param case: the CommCareCase/SQL
    :param schedule: the AlertSchedule
    :param action_definition: the CreateScheduleInstanceActionDefinition that is
    causing the schedule instances to be refreshed
    :param rule: the AutomaticUpdateRule that is causing the schedule instances
    to be refreshed
: param case : the CommCareCase / SQL : param schedule : the AlertSchedule : param action_definition : the CreateScheduleInstanceActionDefinition that is causing the schedule instances to be refreshed : param rule : the AutomaticUpdateRule that is causing the schedule instances to be refreshed
def refresh_case_alert_schedule_instances(case, schedule, action_definition, rule):
    """
    :param case: the CommCareCase/SQL
    :param schedule: the AlertSchedule
    :param action_definition: the CreateScheduleInstanceActionDefinition that is
    causing the schedule instances to be refreshed
    :param rule: the AutomaticUpdateRule that is causing the schedule instances
    to be refreshed
    """
    CaseAlertScheduleInstanceRefresher(
        case,
        action_definition,
        rule,
        schedule,
        action_definition.recipients,
        get_case_alert_schedule_instances_for_schedule(case.case_id, schedule)
    ).refresh()
def refresh_case_alert_schedule_instances ( case , schedule , action_definition , rule ) : CaseAlertScheduleInstanceRefresher ( case , action_definition , rule , schedule , action_definition . recipients , get_case_alert_schedule_instances_for_schedule ( case . case_id , schedule ) ) . refresh ( )