mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-21 01:00:24 +08:00
16 lines
522 B
TypeScript
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>;
|
|
}
|