Files
ray-project--ray/python/ray/experimental/dynamic_resources.py
T
2026-07-13 13:17:40 +08:00

8 lines
366 B
Python

def set_resource(resource_name, capacity, node_id=None):
raise DeprecationWarning(
"Dynamic custom resources are deprecated. Consider using placement "
"groups instead (docs.ray.io/en/master/placement-group.html). You "
"can also specify resources at Ray start time with the 'resources' "
"field in the cluster autoscaler."
)