mirror of
https://github.com/wassname/ray.git
synced 2026-07-04 08:28:19 +08:00
[Hotfix] Fix flake8 lint failing (#7118)
This commit is contained in:
@@ -32,16 +32,16 @@ subprocess.call([
|
||||
"chmod +x hey_linux_amd64"
|
||||
])
|
||||
|
||||
ray.init(address=cluster.address, include_webui=True, webui_host='0.0.0.0')
|
||||
ray.init(address=cluster.address, include_webui=True, webui_host="0.0.0.0")
|
||||
serve.init(blocking=True, kv_store_connector=lambda ns: RayInternalKVStore(ns))
|
||||
|
||||
|
||||
@serve.route('/echo')
|
||||
@serve.route("/echo")
|
||||
@serve.accept_batch
|
||||
def echo(_):
|
||||
time.sleep(0.01) # Sleep for 10ms
|
||||
ray.show_in_webui(str(serve.context.batch_size), key="Current batch size")
|
||||
return ['hi {}'.format(i) for i in range(serve.context.batch_size)]
|
||||
return ["hi {}".format(i) for i in range(serve.context.batch_size)]
|
||||
|
||||
|
||||
print("Scaling to 30 replicas")
|
||||
|
||||
Reference in New Issue
Block a user