spawn_workers()
Spawn n additional workers and wait for them to join.
Usage
spawn_workers(
n=1,
*,
startup_timeout=30.0,
launcher=None,
)Controller only.
Parameters
n: int = 1-
Number of workers to spawn.
startup_timeout: float = 30.0-
Seconds to wait for the workers to attach.
launcher: _Callable[[str, int], _Any] | None = None-
As for
Pool.create(); the default islauncher().
Returns
The slot indices spawned into.