WorkerSet.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 WorkerSet to add more EnvRunners to the set.

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

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

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

  • properly.