Remove raylet client from Python worker (#6018)

This commit is contained in:
Edward Oakes
2020-01-31 18:23:01 -08:00
committed by GitHub
parent 341a921d81
commit 92525f35d1
14 changed files with 112 additions and 165 deletions
+1 -1
View File
@@ -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)