TenantAtlas/apps/platform/.pnpm-store/v10/files/f5/011289badd59c90c31bf4b07a38d15588df598b961bdba9dc09eba9fb5dd50b7e6e4719f7299d9dfe9cf6cad75874d3b000c1529e0636bedb808c98d3fdc4b
Ahmed Darrazi 9f74f7a658
Some checks failed
PR Fast Feedback / fast-feedback (pull_request) Failing after 51s
feat: compress governance operator outcomes
2026-04-19 14:15:11 +02:00

26 lines
916 B
Plaintext

import { Command } from '../command';
import { Logger } from '../logger';
import { FlowController } from './flow-controller';
export type ProcessCloseCondition = 'failure' | 'success';
/**
* Sends a SIGTERM signal to all commands when one of the commands exits with a matching condition.
*/
export declare class KillOthers implements FlowController {
private readonly logger;
private readonly abortController?;
private readonly conditions;
private readonly killSignal;
private readonly timeoutMs?;
constructor({ logger, abortController, conditions, killSignal, timeoutMs, }: {
logger: Logger;
abortController?: AbortController;
conditions: ProcessCloseCondition | ProcessCloseCondition[];
killSignal: string | undefined;
timeoutMs?: number;
});
handle(commands: Command[]): {
commands: Command[];
};
private maybeForceKill;
}