process-rerun
Version:
The purpose of this library is - build simple and flexible interface for parallel command execution with rerun (on fail) possibility
11 lines (10 loc) • 420 B
TypeScript
import type { TBuildOpts } from './lib.types';
export type TRunner = {
(commands: string[] | Array<(index: number) => any>): Promise<{
notRetriable: string[];
retriable: string[];
}>;
};
declare const getReruner: ({ maxThreads, attemptsCount, longestProcessTime, pollTime, successExitCode, ...rest }?: TBuildOpts) => TRunner;
export type { TBuildOpts } from './lib.types';
export { getReruner };