TenantAtlas/apps/platform/.pnpm-store/v10/files/f8/3f5b880c55872c3123e72dcb187f9bff3262b2e7ef351c6739f58120b646b6a4f78713a555b80e8462cae52c64a930ba636ba8cde68f549d3d92c7ccd14067
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

24 lines
712 B
Plaintext

import * as Rx from 'rxjs';
import { Command } from '../command';
import { Logger } from '../logger';
import { FlowController } from './flow-controller';
export type RestartDelay = number | 'exponential';
/**
* Restarts commands that fail up to a defined number of times.
*/
export declare class RestartProcess implements FlowController {
private readonly logger;
private readonly scheduler?;
private readonly delay;
readonly tries: number;
constructor({ delay, tries, logger, scheduler, }: {
delay?: RestartDelay;
tries?: number;
logger: Logger;
scheduler?: Rx.SchedulerLike;
});
handle(commands: Command[]): {
commands: Command[];
};
}