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 { ExecutionStopReason, ExecutorType } from '../domain/execution';
|
||||
|
||||
export type PersistedExecutionStopStatus =
|
||||
| 'termination_requested'
|
||||
| 'already_exited'
|
||||
| 'identity_mismatch'
|
||||
| 'pid_mismatch'
|
||||
| 'unsupported'
|
||||
| 'invalid';
|
||||
|
||||
export interface PersistedExecutionStopResult {
|
||||
status: PersistedExecutionStopStatus;
|
||||
termSignalSent: boolean;
|
||||
killSignalSent: boolean;
|
||||
}
|
||||
|
||||
export interface PersistedExecutionController {
|
||||
readonly executorType: ExecutorType;
|
||||
stop(input: {
|
||||
durableHandle: string;
|
||||
expectedPid?: number;
|
||||
reason: ExecutionStopReason;
|
||||
}): Promise<PersistedExecutionStopResult>;
|
||||
}
|
||||
Reference in New Issue
Block a user