mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-22 19:29:13 +08:00
feat(ql3): establish 3.0 incubation baseline
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
export const MAX_RUN_DISPATCH_LEASE_EXPIRY_PAGE_SIZE = 64;
|
||||
|
||||
export interface RunDispatchLeaseExpiryCursor {
|
||||
expiresAtMs: number;
|
||||
attemptId: string;
|
||||
}
|
||||
|
||||
export interface ExpiredRunDispatchLeaseCandidate
|
||||
extends RunDispatchLeaseExpiryCursor {
|
||||
runId: string;
|
||||
}
|
||||
|
||||
export interface ListExpiredRunDispatchLeasesOptions {
|
||||
observedAtMs: number;
|
||||
after?: RunDispatchLeaseExpiryCursor;
|
||||
limit?: number;
|
||||
}
|
||||
|
||||
export interface RunDispatchLeaseExpirySource {
|
||||
listExpired(
|
||||
options: ListExpiredRunDispatchLeasesOptions,
|
||||
): Promise<readonly ExpiredRunDispatchLeaseCandidate[]>;
|
||||
}
|
||||
Reference in New Issue
Block a user