BatchCluster instances manage 0 or more homogenious child processes, and
provide the main interface for enqueing
Given the large number of configuration options, the constructor
receives a single options hash. The most important of these are the
ChildProcessFactory, which specifies the factory that creates
ChildProcess instances, and
BatchProcessOptions, which specifies how
child tasks can be verified and shut down.
For integration tests:
the mean number of tasks completed by child processes
the number of pending tasks
Shut down this instance, and all child processes.
should an attempt be made to finish in-flight tasks, or should we force-kill child PIDs.
task for processing by a
a Promise that is resolved or rejected once the task has been attemped on an idle BatchProcess
Emitted when a child process has an error when spawning
Emitted when tasks receive data, which may be partial chunks from the task stream.
Emitted when a task has an error
Emitted when a child process has an error during shutdown
Emitted when this instance is in the process of ending.
Emitted when this instance has ended. No child processes should remain at this point.
Exposed only for unit tests
the spawned PIDs that are still in the process table.
Generated using TypeDoc