mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-22 02:27:44 +08:00
feat(ql3): establish 3.0 incubation baseline
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
import type { RunAttemptStatus } from './run';
|
||||
|
||||
export const COMPLETION_RECEIPT_JOURNAL_STATES = [
|
||||
'pending',
|
||||
'quarantined',
|
||||
] as const;
|
||||
|
||||
export type CompletionReceiptJournalState =
|
||||
(typeof COMPLETION_RECEIPT_JOURNAL_STATES)[number];
|
||||
|
||||
export interface CompletionReceiptJournalRecord {
|
||||
attemptId: string;
|
||||
runId: string;
|
||||
state: CompletionReceiptJournalState;
|
||||
quarantineRef?: string;
|
||||
purgeAfterMs?: number;
|
||||
registeredAtMs: number;
|
||||
updatedAtMs: number;
|
||||
}
|
||||
|
||||
export interface CompletionReceiptJournalCandidate
|
||||
extends CompletionReceiptJournalRecord {
|
||||
attemptStatus: RunAttemptStatus;
|
||||
executorType: string;
|
||||
finishedAtMs?: number;
|
||||
}
|
||||
|
||||
export interface CompletionReceiptJournalCursor {
|
||||
updatedAtMs: number;
|
||||
attemptId: string;
|
||||
}
|
||||
|
||||
export interface CompletionReceiptJournalPage {
|
||||
candidates: readonly CompletionReceiptJournalCandidate[];
|
||||
truncated: boolean;
|
||||
nextCursor?: CompletionReceiptJournalCursor;
|
||||
}
|
||||
Reference in New Issue
Block a user