mirror of
https://github.com/vale981/ray
synced 2025-03-08 11:31:40 -05:00
![]() The REST API's schema default denies HTTP access to deployments when `route_prefix` is omitted. This doesn't match `@serve.deployment`'s behavior, which make `route_prefix` the deployment's name when omitted. This change matches the schema's behavior to the decorator. When `route_prefix` is omitted from the config, the deployment's `route_prefix` defaults to its name. When the `route_prefix` is specified as `null`, the deployment won't have HTTP access. This change also fixes a bug in Serve where when a deployment is updated from a non-`None` `route_prefix` to a `None` `route_prefix`, its `route_prefix` does not change. This bug meant that a deployment available over HTTP would continue to be available at the same route even when deployed again with `route_prefix=None`. |
||
---|---|---|
.. | ||
actor | ||
event | ||
job | ||
log | ||
node | ||
reporter | ||
runtime_env | ||
serve | ||
snapshot | ||
test | ||
tune | ||
usage_stats | ||
__init__.py |