Files
ray/python/ray/experimental/dynamic_resources.py
2020-12-28 11:52:36 -08:00

7 lines
361 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.")