mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-21 00:17:47 +08:00
33 lines
800 B
TypeScript
33 lines
800 B
TypeScript
import type { ExecutorType } from '../domain/execution';
|
|
|
|
export const MAX_PRIMARY_RECOVERY_BATCH_SIZE = 64;
|
|
|
|
export interface PrimaryRunRecoveryCursor {
|
|
createdAtMs: number;
|
|
runId: string;
|
|
}
|
|
|
|
export interface PrimaryRunRecoveryAttemptReference {
|
|
attemptId: string;
|
|
executorType: ExecutorType;
|
|
}
|
|
|
|
export interface PrimaryRunRecoveryCandidate {
|
|
runId: string;
|
|
attempts: readonly PrimaryRunRecoveryAttemptReference[];
|
|
}
|
|
|
|
export interface PrimaryRunRecoveryPage {
|
|
candidates: readonly PrimaryRunRecoveryCandidate[];
|
|
truncated: boolean;
|
|
unsafeAttemptOverflow: boolean;
|
|
nextCursor?: PrimaryRunRecoveryCursor;
|
|
}
|
|
|
|
export interface PrimaryRunRecoverySource {
|
|
listCandidates(options?: {
|
|
cursor?: PrimaryRunRecoveryCursor;
|
|
limit?: number;
|
|
}): Promise<PrimaryRunRecoveryPage>;
|
|
}
|