Files
qinglong/back/runtime/ports/localExecutionArtifactAllocator.ts
T

15 lines
442 B
TypeScript

import type { ExecutionOutputSink } from '../domain/execution';
import type { RunDispatchCandidate } from '../domain/runDispatchCandidate';
export interface PreparedLocalExecutionArtifact {
logArtifactId: string;
output: ExecutionOutputSink;
dispose(): void | Promise<void>;
}
export interface LocalExecutionArtifactAllocator {
prepare(
candidate: Readonly<RunDispatchCandidate>,
): Promise<PreparedLocalExecutionArtifact>;
}