The `stop` method in the `RolloutWorker` class of Python's `ray.rllib.evaluation` module is used to gracefully stop the worker and release all associated resources. This method will stop the worker from generating rollouts and collecting samples from the environment. It also stops any ongoing parallel workers and releases the resources held by them. Call this method when the worker is no longer needed or when shutting down the Ray cluster to ensure proper termination of the worker.
Python RolloutWorker.stop - 21 examples found. These are the top rated real world Python examples of ray.rllib.evaluation.rollout_worker.RolloutWorker.stop extracted from open source projects. You can rate examples to help us improve the quality of examples.