fa8c9c1979d10bbaada4a2ea69b90bad620074c8,tests/integ/timeout.py,,_delete_schedules_associated_with_endpoint,#Any#Any#,117

Before Change



def _delete_schedules_associated_with_endpoint(sagemaker_session, endpoint_name):
    response = sagemaker_session.list_monitoring_schedules(endpoint_name=endpoint_name)
    schedule_list = response["MonitoringScheduleSummaries"]
    for schedule in schedule_list:
        sagemaker_session.delete_monitoring_schedule(
            monitoring_schedule_name=schedule["MonitoringScheduleName"]
        )


def _show_logs(resource_name, resource_type, sagemaker_session):
    log_group = "/aws/sagemaker/{}/{}".format(resource_type, resource_name)
    try:
        // print out logs before deletion for debuggability

After Change


            monitor.stop_monitoring_schedule()
            executions = monitor.list_executions()
            for execution in executions:
                execution.stop()
            // Wait for all executions to completely stop.
            // Schedules can"t be deleted with running executions.
            for execution in executions:
                for _ in retries(60, "Waiting for executions to stop", seconds_to_sleep=5):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: aws/sagemaker-python-sdk
Commit Name: fa8c9c1979d10bbaada4a2ea69b90bad620074c8
Time: 2019-12-09
Author: knakad@amazon.com
File Name: tests/integ/timeout.py
Class Name:
Method Name: _delete_schedules_associated_with_endpoint


Project Name: ray-project/ray
Commit Name: 2298f6fb40cb6d348b5b48593c93cdd58ddd1f29
Time: 2020-04-23
Author: ekhliang@gmail.com
File Name: rllib/agents/dqn/tests/test_apex.py
Class Name: TestApex
Method Name: test_apex_compilation_and_per_worker_epsilon_values


Project Name: uber/petastorm
Commit Name: 138ad6d3f17f1441e4684013bf3db285e40cc0ba
Time: 2020-12-01
Author: gueguenster@gmail.com
File Name: petastorm/weighted_sampling_reader.py
Class Name: WeightedSamplingReader
Method Name: __exit__