assert current_resources["CPU"] == 1.0
// By default an actor should not reserve any resources.
Queue()
current_resources = ray.available_resources()
assert current_resources["CPU"] == 1.0
// Specify resource requirement. The queue should now reserve 1 CPU.
After Change
assert current_resources["CPU"] == 1.0
// By default an actor should not reserve any resources.
q = Queue()
current_resources = ray.available_resources()
assert current_resources["CPU"] == 1.0
q.shutdown()
// Specify resource requirement. The queue should now reserve 1 CPU.
q = Queue(actor_options={"num_cpus": 1})