mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 19:49:45 +08:00
Remove raylet client from Python worker (#6018)
This commit is contained in:
@@ -31,5 +31,5 @@ def set_resource(resource_name, capacity, client_id=None):
|
||||
if (capacity < 0) or (capacity != int(capacity)):
|
||||
raise ValueError(
|
||||
"Capacity {} must be a non-negative integer.".format(capacity))
|
||||
return ray.worker.global_worker.raylet_client.set_resource(
|
||||
return ray.worker.global_worker.core_worker.set_resource(
|
||||
resource_name, capacity, client_id_obj)
|
||||
|
||||
Reference in New Issue
Block a user