pipeproc
Version:
Multi-process log processing for nodejs
15 lines (14 loc) • 604 B
TypeScript
/// <reference types="node" />
import { ChildProcess } from "child_process";
import { Monitor } from "forever-monitor";
import { IProc } from "./proc";
import { ISystemProc } from "./systemProc";
export interface IWorker {
process: ChildProcess;
monitor: Monitor;
}
export declare function spawnWorkers(workers: number, activeWorkers: IWorker[], activeProcs: IProc[], activeSystemProcs: ISystemProc[], address: string, clientTLS: {
key: string;
cert: string;
ca: string;
} | false, workerConcurrency: number, workerRestartAfter: number, callback: (err?: Error | null) => void): void;