feat(desktop): attest and manage the owned Windows host lifecycle
This commit is contained in:
@@ -179,6 +179,11 @@ export class ModelHub {
|
||||
} finally { this.waiting--; }
|
||||
}
|
||||
async complete(config, body, signal, onProgress, plan, execute) {
|
||||
const operation = this.provider.requestOperation?.(signal);
|
||||
try { return await this.completeOwned(config, body, operation?.signal ?? signal, onProgress, plan, execute); }
|
||||
finally { operation?.finish(); }
|
||||
}
|
||||
async completeOwned(config, body, signal, onProgress, plan, execute) {
|
||||
const routing = config.modelRouting, excluded = new Set(), deadline = Date.now() + Math.min(routing.queueTimeoutMs, 60000);
|
||||
const requestId = plan?.id ?? randomUUID(), runId = plan?.runId ?? requestId;
|
||||
let lastError;
|
||||
|
||||
Reference in New Issue
Block a user