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())
After Change
pgs = ray.get(t)
// Every task should have current placement group because they
// should be implicitly captured by default.
assert None not in pgs
// Test if tasks don"t capture child tasks when the option is off.
t2 = create_nested_task.options(
num_cpus=0,