n8n
Version:
n8n Workflow Automation Tool
23 lines (22 loc) • 919 B
TypeScript
import { TaskRunnersConfig } from '@n8n/config';
import { TaskRunnerAuthService } from './auth/task-runner-auth.service';
export declare class TaskRunnerProcess {
private readonly runnerConfig;
private readonly authService;
get isRunning(): boolean;
get pid(): number | undefined;
get runPromise(): Promise<void> | null;
private get useLauncher();
private process;
private _runPromise;
private isShuttingDown;
constructor(runnerConfig: TaskRunnersConfig, authService: TaskRunnerAuthService);
start(): Promise<void>;
startNode(grantToken: string, n8nUri: string): import("child_process").ChildProcessWithoutNullStreams;
startLauncher(grantToken: string, n8nUri: string): import("child_process").ChildProcessWithoutNullStreams;
stop(): Promise<void>;
killNode(): void;
killLauncher(): Promise<void>;
private monitorProcess;
private onProcessExit;
}