mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-22 10:32:40 +08:00
feat(ql3): establish 3.0 incubation baseline
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import type {
|
||||
CompletionReceiptJournalCursor,
|
||||
CompletionReceiptJournalPage,
|
||||
} from '../domain/completionReceiptJournal';
|
||||
|
||||
export const MAX_COMPLETION_RECEIPT_JOURNAL_BATCH_SIZE = 64;
|
||||
|
||||
export interface RegisterCompletionReceiptCommand {
|
||||
attemptId: string;
|
||||
runId: string;
|
||||
registeredAtMs: number;
|
||||
}
|
||||
|
||||
export interface QuarantineCompletionReceiptCommand {
|
||||
attemptId: string;
|
||||
quarantineRef: string;
|
||||
purgeAfterMs: number;
|
||||
updatedAtMs: number;
|
||||
}
|
||||
|
||||
export interface CompletionReceiptJournal {
|
||||
register(command: RegisterCompletionReceiptCommand): Promise<void>;
|
||||
markQuarantined(command: QuarantineCompletionReceiptCommand): Promise<void>;
|
||||
resolve(attemptId: string): Promise<boolean>;
|
||||
listCandidates(options: {
|
||||
observedAtMs: number;
|
||||
cursor?: CompletionReceiptJournalCursor;
|
||||
limit?: number;
|
||||
}): Promise<CompletionReceiptJournalPage>;
|
||||
}
|
||||
Reference in New Issue
Block a user