mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
27 lines
573 B
TypeScript
27 lines
573 B
TypeScript
export const MAX_PRIMARY_TIMEOUT_BATCH_SIZE = 64;
|
|
|
|
export interface PrimaryTimeoutCursor {
|
|
deadlineAtMs: number;
|
|
attemptId: string;
|
|
}
|
|
|
|
export interface PrimaryTimeoutCandidate {
|
|
runId: string;
|
|
attemptId: string;
|
|
deadlineAtMs: number;
|
|
}
|
|
|
|
export interface PrimaryTimeoutPage {
|
|
candidates: readonly PrimaryTimeoutCandidate[];
|
|
truncated: boolean;
|
|
nextCursor?: PrimaryTimeoutCursor;
|
|
}
|
|
|
|
export interface PrimaryTimeoutSource {
|
|
listOverdue(options: {
|
|
nowMs: number;
|
|
cursor?: PrimaryTimeoutCursor;
|
|
limit?: number;
|
|
}): Promise<PrimaryTimeoutPage>;
|
|
}
|