EnvRunnerGroup.add_workers(num_workers: int, validate: bool = False) None[source]#

Creates and adds a number of remote workers to this worker set.

Can be called several times on the same EnvRunnerGroup to add more EnvRunners to the set.

  • num_workers – The number of remote Workers to add to this EnvRunnerGroup.

  • validate – Whether to validate remote workers after their construction process.


RayError – If any of the constructed remote workers is not up and running properly.

DeveloperAPI: This API may change across minor Ray releases.