mirror of
https://github.com/wassname/ray.git
synced 2026-07-29 11:26:04 +08:00
Change Python's ObjectID to ObjectRef (#9353)
This commit is contained in:
@@ -20,7 +20,7 @@ class RayServeHandle:
|
||||
Traffic=...
|
||||
)
|
||||
>>> handle.remote(my_request_content)
|
||||
ObjectID(...)
|
||||
ObjectRef(...)
|
||||
>>> ray.get(handle.remote(...))
|
||||
# result
|
||||
>>> ray.get(handle.remote(let_it_crash_request))
|
||||
|
||||
@@ -198,7 +198,7 @@ class Router:
|
||||
self.endpoint_queues[endpoint].appendleft(query)
|
||||
self.flush_endpoint_queue(endpoint)
|
||||
|
||||
# Note: a future change can be to directly return the ObjectID from
|
||||
# Note: a future change can be to directly return the ObjectRef from
|
||||
# replica task submission
|
||||
try:
|
||||
result = await query.async_future
|
||||
|
||||
Reference in New Issue
Block a user