diff --git a/python/ray/serve/api.py b/python/ray/serve/api.py index 1b1799257..141e63de6 100644 --- a/python/ray/serve/api.py +++ b/python/ray/serve/api.py @@ -417,7 +417,7 @@ def list_deployments() -> Dict[str, Deployment]: return _private_api.list_deployments() -@PublicAPI(stability="alpha") +@PublicAPI(stability="beta") def run( target: Union[ClassNode, FunctionNode], _blocking: bool = True, @@ -435,8 +435,10 @@ def run( A user-built Serve Application or a ClassNode that acts as the root node of DAG. By default ClassNode is the Driver deployment unless user provides a customized one. - host: The host passed into serve.start(). - port: The port passed into serve.start(). + host: Host for HTTP servers to listen on. Defaults to + "127.0.0.1". To expose Serve publicly, you probably want to set + this to "0.0.0.0". + port: Port for HTTP server. Defaults to 8000. Returns: RayServeHandle: A regular ray serve handle that can be called by user diff --git a/python/ray/serve/deployment.py b/python/ray/serve/deployment.py index 0cc0b30e5..e4c74f974 100644 --- a/python/ray/serve/deployment.py +++ b/python/ray/serve/deployment.py @@ -166,7 +166,7 @@ class Deployment: "Use `deployment.deploy() instead.`" ) - @PublicAPI(stability="alpha") + @PublicAPI(stability="beta") def bind(self, *args, **kwargs) -> Union[ClassNode, FunctionNode]: """Bind the provided arguments and return a class or function node.