mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-21 18:08:20 +08:00
feat(ql3): establish 3.0 incubation baseline
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import type {
|
||||
ExecutionContext,
|
||||
ExecutionHandle,
|
||||
ExecutionInspection,
|
||||
ExecutionSpec,
|
||||
ExecutionStopReason,
|
||||
ExecutionStopResult,
|
||||
ExecutorCapabilities,
|
||||
ExecutorType,
|
||||
} from '../domain/execution';
|
||||
|
||||
export interface Executor {
|
||||
readonly type: ExecutorType;
|
||||
capabilities(): ExecutorCapabilities;
|
||||
start(
|
||||
spec: ExecutionSpec,
|
||||
context: ExecutionContext,
|
||||
): Promise<ExecutionHandle>;
|
||||
stop(
|
||||
handle: ExecutionHandle,
|
||||
reason: ExecutionStopReason,
|
||||
): Promise<ExecutionStopResult>;
|
||||
inspect(handle: ExecutionHandle): Promise<ExecutionInspection>;
|
||||
}
|
||||
Reference in New Issue
Block a user