(case, schedule, action_definition, rule, start_date=None)
:param case: the CommCareCase/SQL
    :param schedule: the TimedSchedule
    :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 start_date: the date to start the TimedSchedule
:param case: the CommCareCase/SQL
    :param schedule: the TimedSchedule
    :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 start_date: the date to start the TimedSchedule
: param case : the CommCareCase / SQL : param schedule : the TimedSchedule : 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 start_date : the date to start the TimedSchedule
def refresh_case_timed_schedule_instances(case, schedule, action_definition, rule, start_date=None):
    """
    :param case: the CommCareCase/SQL
    :param schedule: the TimedSchedule
    :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 start_date: the date to start the TimedSchedule
    """
    CaseTimedScheduleInstanceRefresher(
        case,
        action_definition,
        rule,
        schedule,
        action_definition.recipients,
        get_case_timed_schedule_instances_for_schedule(case.case_id, schedule),
        start_date=start_date
    ).refresh()
def refresh_case_timed_schedule_instances ( case , schedule , action_definition , rule , start_date = None ) : CaseTimedScheduleInstanceRefresher ( case , action_definition , rule , schedule , action_definition . recipients , get_case_timed_schedule_instances_for_schedule ( case . case_id , schedule ) , start_date = start_date ) . refresh ( )