9e68b77796c1478973f5236adfc09f3399721659,rllib/evaluation/worker_set.py,WorkerSet,stop,#WorkerSet#,145

Before Change


        Stop all rollout workers.
        self.local_worker().stop()
        for w in self.remote_workers():
            w.stop.remote()
            w.__ray_terminate__.remote()

    @DeveloperAPI
    def foreach_worker(self, func: Callable[[RolloutWorker], T]) -> List[T]:

After Change


        Stop all rollout workers.
        try:
            self.local_worker().stop()
            tids = [w.stop.remote() for w in self.remote_workers()]
            ray.get(tids)
        except Exception:
            logger.exception("Failed to stop workers")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ray-project/ray
Commit Name: 9e68b77796c1478973f5236adfc09f3399721659
Time: 2020-10-28
Author: mannyv@gmail.com
File Name: rllib/evaluation/worker_set.py
Class Name: WorkerSet
Method Name: stop


Project Name: ray-project/ray
Commit Name: dd63178e91dbe77b79be8d38bdf67501ceee1d7c
Time: 2020-04-10
Author: rliaw@berkeley.edu
File Name: python/ray/util/sgd/torch/torch_trainer.py
Class Name: TorchTrainer
Method Name: _start_workers


Project Name: ray-project/ray
Commit Name: 9dd4561d1bd05e44b2b9b5d4424896d2ce6b076b
Time: 2020-10-09
Author: rkooo567@gmail.com
File Name: ci/regression_test/stress_tests/placement_group/test_placement_group.py
Class Name:
Method Name: pg_launcher