(self, schedule_id)
:param schedule_id: the AlertSchedule schedule_id
:param schedule_id: the AlertSchedule schedule_id
: param schedule_id : the AlertSchedule schedule_id
def delete_alert_schedule_instances(self, schedule_id):
    """
    :param schedule_id: the AlertSchedule schedule_id
    """
    try:
        with CriticalSection(['refresh-alert-schedule-instances-for-%s' % schedule_id.hex], timeout=30 * 60):
            delete_alert_schedule_instances_for_schedule(AlertScheduleInstance, schedule_id)
    except Exception as e:
        self.retry(exc=e)
def delete_alert_schedule_instances ( self , schedule_id ) : try : with CriticalSection ( [ 'refresh-alert-schedule-instances-for-%s' % schedule_id . hex ] , timeout = 30 * 60 ) : delete_alert_schedule_instances_for_schedule ( AlertScheduleInstance , schedule_id ) except Exception as e : self . retry ( exc = e )