mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00
[tune] filter placement group resources if not in use (#16996)
This commit is contained in:
parent
6d9fb421c6
commit
49b72eec16
1 changed files with 2 additions and 1 deletions
|
@ -921,7 +921,8 @@ class RayTrialExecutor(TrialExecutor):
|
|||
total_resources.get(name, 0.),
|
||||
self._avail_resources.get_res_total(name), name)
|
||||
for name in self._avail_resources.custom_resources
|
||||
if not name.startswith(ray.resource_spec.NODE_ID_PREFIX)
|
||||
if not name.startswith(ray.resource_spec.NODE_ID_PREFIX) and (
|
||||
total_resources.get(name, 0.) > 0 or "_group_" not in name)
|
||||
])
|
||||
if customs:
|
||||
status += " ({})".format(customs)
|
||||
|
|
Loading…
Add table
Reference in a new issue