Interface ChildProcessFactory

These are required parameters for a given BatchCluster.

interface ChildProcessFactory {
    processFactory: (() => ChildProcess | Promise<ChildProcess>);
}

Properties

Properties

processFactory: (() => 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.

Type declaration

    • (): ChildProcess | Promise<ChildProcess>
    • Returns ChildProcess | Promise<ChildProcess>

Generated using TypeDoc