feat(ql3): establish 3.0 incubation baseline

This commit is contained in:
whyour
2026-08-12 00:25:26 +08:00
parent 4bf92dcfeb
commit c699c32461
2817 changed files with 779642 additions and 653 deletions
@@ -0,0 +1,35 @@
import type {
ExecutionOrigin,
RunAttemptStatus,
RunStatus,
} from '../domain/run';
export const MAX_LEGACY_SHADOW_LOOKUP_CANDIDATES = 64;
export interface ActiveLegacyShadowRun {
runId: string;
attemptId: string;
origin: ExecutionOrigin;
runStatus: RunStatus;
attemptStatus: RunAttemptStatus;
pid?: number;
logArtifactId?: string;
createdAtMs: number;
}
export interface ActiveLegacyShadowRunQuery {
legacyCronId: number;
origins: readonly ExecutionOrigin[];
limit?: number;
}
export interface ActiveLegacyShadowRunResult {
candidates: readonly ActiveLegacyShadowRun[];
truncated: boolean;
}
export interface LegacyShadowRunLocator {
listActiveByLegacyCron(
query: ActiveLegacyShadowRunQuery,
): Promise<ActiveLegacyShadowRunResult>;
}