Interface ChildProcessFactory

These are required parameters for a given BatchCluster.


  • ChildProcessFactory



processFactory: (() => ChildProcess | Promise<ChildProcess>)

Type declaration

    • (): ChildProcess | Promise<ChildProcess>
    • Expected to be a simple call to execFile. Platform-specific code is the responsibility of this thunk. Error handlers will be registered as appropriate.

      If this function throws an error or rejects the promise after you've spawned a child process, the child process may continue to run and leak system resources.

      Returns ChildProcess | Promise<ChildProcess>

Generated using TypeDoc