1054613da11826428fe24f3b083a01a813b14b7f,python/ray/tests/test_queue.py,,test_custom_resources,#,197

Before Change


    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})
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: ray-project/ray
Commit Name: 1054613da11826428fe24f3b083a01a813b14b7f
Time: 2021-03-03
Author: 869218239a@zju.edu.cn
File Name: python/ray/tests/test_queue.py
Class Name:
Method Name: test_custom_resources


Project Name: ray-project/ray
Commit Name: 1054613da11826428fe24f3b083a01a813b14b7f
Time: 2021-03-03
Author: 869218239a@zju.edu.cn
File Name: python/ray/tests/test_queue.py
Class Name:
Method Name: test_custom_resources


Project Name: ray-project/ray
Commit Name: 2092b097eab41b118a117fdfadd0fe664db41f63
Time: 2021-02-08
Author: 869218239a@zju.edu.cn
File Name: python/ray/tests/test_queue.py
Class Name:
Method Name: test_custom_resources


Project Name: ray-project/ray
Commit Name: 1754359281d8b4b9d15f2cb62ca5330d8c6ea84f
Time: 2021-02-09
Author: 869218239a@zju.edu.cn
File Name: python/ray/tests/test_queue.py
Class Name:
Method Name: test_custom_resources