Repository navigation
[core] Remove serialized_allocated_resource_instances from RuntimeEnv creation. - #47118
Conversation
Signed-off-by: Ruiyang Wang <[email protected]>
|
Past conversation on deleting the code: #16871 (comment) |
|
I'd vote for removing Also I feel the implementation can be changed to dynamically inject the allocated resources into container runtime env dict (e.g. |
rkooo567
left a comment
There was a problem hiding this comment.
Let's also remove worker_resource_limits_enabled?
|
what is allocated resources btw? |
That's allocated resources to the task. |
Signed-off-by: Ruiyang Wang <[email protected]>
|
worker_resource_limits_enabled removed |
| ? required_resources | ||
| : absl::flat_hash_map<std::string, double>{}), | ||
| : serialized_runtime_env(std::move(serialized_runtime_env)), | ||
| required_resources(required_resources), |
There was a problem hiding this comment.
Required_resources can also be removed? Based on the previous logic, it's always empty.
There was a problem hiding this comment.
I don't think it's always empty. It describes the resource shape of the task, populated from Python side to CoreWorker:
ray/src/ray/core_worker/core_worker.cc
Line 2552 in e208dc5
There was a problem hiding this comment.
I mean required_resources of WorkerCacheKey is always empty if the flag is off?
Signed-off-by: Ruiyang Wang <[email protected]>
Signed-off-by: Ruiyang Wang <[email protected]>
GetOrCreateRuntimeEnvRequest has field
serialized_allocated_resource_instances. It does not serve any purpose other than a log in the Runtime Env Agent. Removes it.Also removes required_resources in WorkerCacheKey and the flag worker_resource_limits_enabled.