class documentation
class WorkerPool: (source)
Manage a fixed-size collection of child processes which can run tests.
Async Method | start |
Launch all of the workers for this pool. |
Method | _create |
Create local worker protocol instances and return them. |
Method | _launch |
Spawn processes from a list of process protocols. |
Instance Variable | _config |
Configuration for the precise way in which the pool is run. |
Launch all of the workers for this pool.
Returns | |
StartedWorkerPool | A started pool object that can run jobs using the workers. |
def _createLocalWorkers(self, protocols:
Iterable[ LocalWorkerAMP]
, workingDirectory: FilePath[ Any]
, logFile: TextIO
) -> List[ LocalWorker]
:
(source)
¶
Create local worker protocol instances and return them.
Parameters | |
protocols:Iterable[ | The process/protocol adapters to use for the created workers. |
workingFilePath[ | The base path in which we should run the workers. |
logTextIO | The test log, for workers to write to. |
Returns | |
List[ | A list of quantity LocalWorker instances. |