ray.rllib.env.env_runner_group.EnvRunnerGroup.add_workers#

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.

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

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

Raises:

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

DeveloperAPI: This API may change across minor Ray releases.