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

16 lines
522 B
TypeScript

import type { RunDispatchLeaseRecord } from '../domain/runDispatchLease';
import type {
FencedRunDispatchLeaseRequest,
ReleaseRunDispatchLeaseRequest,
} from '../application/runDispatchLeaseService';
import type { ReleaseRunDispatchLeaseResult } from './runDispatchLeaseRepository';
export interface WorkerRunLeaseClient {
renew(
request: FencedRunDispatchLeaseRequest,
): Promise<RunDispatchLeaseRecord>;
release(
request: ReleaseRunDispatchLeaseRequest,
): Promise<ReleaseRunDispatchLeaseResult>;
}