# Ray: Resource request cannot be scheduled — how to check CPU usage or actor resource allocation

**URL:** <https://discuss.ray.io/t/ray-resource-request-cannot-be-scheduled-how-to-check-cpu-usage-or-actor-resource-allocation/23264>\
**Category:** Offline RL\
**Created:** [October 23, 2025, 4:28am UTC](https://discuss.ray.io/t/ray-resource-request-cannot-be-scheduled-how-to-check-cpu-usage-or-actor-resource-allocation/23264 "2025-10-23T04:28:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RunLLM](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/runllm/32/8249_2.png) [@RunLLM](https://discuss.ray.io/u/RunLLM)\
**Post date:** [October 23, 2025, 4:29am UTC](https://discuss.ray.io/t/ray-resource-request-cannot-be-scheduled-how-to-check-cpu-usage-or-actor-resource-allocation/23264/2 "2025-10-23T04:29:00Z")

</div>

To check which resources (CPUs, actors, etc.) are currently being scheduled or used in Ray, you can use the `ray.available_resources()` and `ray.nodes()` functions in your Python code. These will show you the current logical resource usage and availability, helping you identify if all CPUs are claimed by actors or tasks. This is especially useful when you see scheduling warnings like “resource request cannot be scheduled right now” due to resource exhaustion. For more details, see the discussion at [Too many actors cause worker is done](https://discuss.ray.io/t/too-many-actors-cause-worker-is-done/22716).

Additionally, the Ray Dashboard (if available) provides a visual overview of resource usage, active actors, and pending tasks, which can help you debug resource bottlenecks. On Colab, you may not have access to the dashboard, so using the Python API is the best approach. If you want to see which actors are running, you can also use `ray.util.state.list_actors()` for more detailed actor state information. For more debugging tips, see [Debugging Ray Data auto-scaling errors](https://docs.anyscale.com/monitoring/debugging-ray-data-auto-scaling.md).

Would you like more detail on how to interpret these outputs or how to adjust your configuration to avoid resource deadlocks?

Sources:

- [Too many actors cause worker is done](https://discuss.ray.io/t/too-many-actors-cause-worker-is-done/22716)
- [Debugging Ray Data auto-scaling errors](https://docs.anyscale.com/monitoring/debugging-ray-data-auto-scaling.md)

Hint: Mention @RunLLM in the post for followups.

---

_[View the full topic](https://discuss.ray.io/t/ray-resource-request-cannot-be-scheduled-how-to-check-cpu-usage-or-actor-resource-allocation/23264)._
