7f9ddfcfd869b16b49e47f2d48c027d13dd45922,python/ray/serve/api.py,,create_endpoint,#Any#Any#Any#,157

Before Change


    global_state.route_table.register_service(
        route, endpoint_name, methods=methods)
    http_proxy = global_state.get_http_proxy()
    ray.get(
        http_proxy.set_route_table.remote(
            global_state.route_table.list_service(
                include_methods=True, include_headless=False)))


@_ensure_connected
def set_backend_config(backend_tag, backend_config):

After Change


            registered before returning
    
    methods = [m.upper() for m in methods]
    ray.get(
        global_state.master_actor.create_endpoint.remote(
            route, endpoint_name, methods))


@_ensure_connected
def set_backend_config(backend_tag, backend_config):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ray-project/ray
Commit Name: 7f9ddfcfd869b16b49e47f2d48c027d13dd45922
Time: 2020-04-02
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/api.py
Class Name:
Method Name: create_endpoint


Project Name: ray-project/ray
Commit Name: 1e39c403709b96d0bfa9c139e927441acc232426
Time: 2020-09-27
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_placement_group.py
Class Name:
Method Name: test_capture_child_tasks


Project Name: horovod/horovod
Commit Name: 4a06f38438d9161cd141bb65ac9310703686d517
Time: 2021-02-08
Author: rliaw@berkeley.edu
File Name: horovod/ray/runner.py
Class Name: RayExecutor
Method Name: run