[Hotfix] Fix flake8 lint failing (#7118)

This commit is contained in:
Simon Mo
2020-02-10 19:57:21 -08:00
committed by GitHub
parent 4139e02f01
commit bec92a8946
+3 -3
View File
@@ -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")