1e39c403709b96d0bfa9c139e927441acc232426,python/ray/tests/test_placement_group.py,,test_capture_child_tasks,#Any#,796
Before Change
ray.get(actor.ready.remote())
self.actors.append(actor)
a = Actor.options(placement_group=pg).remote()
ray.get(a.ready.remote())
// 1 top level actor + 3 children.
for _ in range(total_num_actors - 1):
ray.get(a.schedule_nested_actor.remote())
// Make sure all the actors are scheduled on the same node.
// (why? The placement group has STRICT_PACK strategy).
node_id_set = set()
After Change
for _ in range(3)
])
t = create_nested_task.options(
num_cpus=1, num_gpus=0, placement_group=pg).remote(1, 0)
pgs = ray.get(t)
// Every task should have current placement group because they
// should be implicitly captured by default.
assert None not in pgs
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: ray-project/ray
Commit Name: 1e39c403709b96d0bfa9c139e927441acc232426
Time: 2020-09-27
Author: rkooo567@gmail.com
File Name: python/ray/tests/test_placement_group.py
Class Name:
Method Name: test_capture_child_tasks
Project Name: ray-project/ray
Commit Name: 7c0200c93b88898507dbafcb2d92314d0dbcd451
Time: 2020-04-28
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/api.py
Class Name:
Method Name: init
Project Name: ray-project/ray
Commit Name: 305eb74a86ad633dba754b1575f53228ab470c0a
Time: 2020-04-09
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/master.py
Class Name: ServeMaster
Method Name: start_http_proxy