ray.available_resources#

ray.available_resources()[source]#

Get the current available cluster resources.

This is different from cluster_resources in that this will return idle (available) resources rather than total resources.

Note that this information can grow stale as tasks start and finish.

Returns:

A dictionary mapping resource name to the total quantity of that

resource in the cluster.

DeveloperAPI: This API may change across minor Ray releases.