mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-21 09:58:46 +08:00
22 lines
696 B
TypeScript
22 lines
696 B
TypeScript
/** Bounds one startup recovery observation independently of the local Profile. */
|
|
export const MAX_LOCAL_RUN_STARTUP_RECOVERY_CANDIDATES = 256;
|
|
|
|
export type LocalRunStartupRecoveryStatus = 'dispatching' | 'running';
|
|
|
|
export interface LocalRunStartupRecoveryCandidate {
|
|
readonly runId: string;
|
|
readonly runStatus: LocalRunStartupRecoveryStatus;
|
|
readonly activeAttemptCount: number;
|
|
}
|
|
|
|
export interface LocalRunStartupRecoveryPage {
|
|
readonly candidates: readonly LocalRunStartupRecoveryCandidate[];
|
|
readonly truncated: boolean;
|
|
}
|
|
|
|
export interface LocalRunStartupRecoverySource {
|
|
inspectCandidates(options?: {
|
|
readonly limit?: number;
|
|
}): Promise<LocalRunStartupRecoveryPage>;
|
|
}
|