mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 20:06:31 +08:00
HotFix k8s autoscaling (#14024)
This commit is contained in:
@@ -94,6 +94,11 @@ def get_autodetected_resources(container_data):
|
||||
for resource_name in ["cpu", "gpu"]
|
||||
}
|
||||
|
||||
# Throw out GPU from resource dict if the amount is 0.
|
||||
for key in copy.deepcopy(node_type_resources):
|
||||
if node_type_resources[key] == 0:
|
||||
del node_type_resources[key]
|
||||
|
||||
return node_type_resources
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user