@camstack/addon-pipeline-orchestrator 1.2.705 → 1.2.706
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-D9Ieg-TJ.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-Dok-wGGT.mjs} +2 -2
- package/dist/{hostInit-BVdelTmU.mjs → hostInit-BD9_uA2k.mjs} +2 -2
- package/dist/index.js +73 -16
- package/dist/index.mjs +73 -16
- package/dist/remoteEntry.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.706] - 2026-11-18
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- A node whose only eligible inference device is the CPU now runs on it (the single eligible device is elected instead of the runner's default), and a GPU OpenVINO cannot see no longer holds the CPU back
|
|
15
|
+
|
|
10
16
|
## [1.2.705] - 2026-11-18
|
|
11
17
|
|
|
12
18
|
### Added
|
|
@@ -18,7 +18,7 @@ var e = {
|
|
|
18
18
|
},
|
|
19
19
|
"@camstack/types": {
|
|
20
20
|
name: "@camstack/types",
|
|
21
|
-
version: "1.2.
|
|
21
|
+
version: "1.2.598",
|
|
22
22
|
scope: ["default"],
|
|
23
23
|
loaded: !1,
|
|
24
24
|
from: "addon_pipeline_orchestrator_widgets",
|
|
@@ -33,7 +33,7 @@ var e = {
|
|
|
33
33
|
},
|
|
34
34
|
"@camstack/ui-library": {
|
|
35
35
|
name: "@camstack/ui-library",
|
|
36
|
-
version: "1.2.
|
|
36
|
+
version: "1.2.473",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_pipeline_orchestrator_widgets",
|
|
@@ -45,7 +45,7 @@ async function r() {
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"@camstack/types": {
|
|
48
|
-
version: "1.2.
|
|
48
|
+
version: "1.2.598",
|
|
49
49
|
scope: "default",
|
|
50
50
|
shareConfig: {
|
|
51
51
|
singleton: !0,
|
|
@@ -99,7 +99,7 @@ async function r() {
|
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
"@camstack/ui-library": {
|
|
102
|
-
version: "1.2.
|
|
102
|
+
version: "1.2.473",
|
|
103
103
|
scope: "default",
|
|
104
104
|
shareConfig: {
|
|
105
105
|
singleton: !0,
|
package/dist/index.js
CHANGED
|
@@ -73891,7 +73891,13 @@ var pipelineExecutorCapability = {
|
|
|
73891
73891
|
/** Pool deaths inside the current window. */
|
|
73892
73892
|
deaths: number$1(),
|
|
73893
73893
|
/** The last death's message. */
|
|
73894
|
-
lastError: string()
|
|
73894
|
+
lastError: string(),
|
|
73895
|
+
/**
|
|
73896
|
+
* Present when the device is ABSENT rather than dead: the runtime
|
|
73897
|
+
* itself enumerates no such device (`no-gpu-device` — OpenVINO sees
|
|
73898
|
+
* no supported GPU; driver/runtime does not support this iGPU).
|
|
73899
|
+
*/
|
|
73900
|
+
absentReason: _enum(["no-gpu-device"]).optional()
|
|
73895
73901
|
})).readonly() })),
|
|
73896
73902
|
/**
|
|
73897
73903
|
* Re-arm a terminally `failed` inference device on `nodeId`: forget its
|
|
@@ -81762,7 +81768,8 @@ var InferenceDeviceExclusionReasonSchema = _enum([
|
|
|
81762
81768
|
"unavailable",
|
|
81763
81769
|
"cannot-host-camera-root",
|
|
81764
81770
|
"accelerator-preferred",
|
|
81765
|
-
"root-switched-off"
|
|
81771
|
+
"root-switched-off",
|
|
81772
|
+
"no-gpu-device"
|
|
81766
81773
|
]);
|
|
81767
81774
|
var NodeInferenceDeviceSchema = object({
|
|
81768
81775
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
@@ -115799,11 +115806,11 @@ function inferenceDeviceCaps(stored) {
|
|
|
115799
115806
|
function isCpuFallback(view) {
|
|
115800
115807
|
return view.backend === "cpu";
|
|
115801
115808
|
}
|
|
115802
|
-
function resolveInferenceDeviceEligibility(probed, stored, canRunRoot, isPoolUsable, isRootSwitchedOn) {
|
|
115809
|
+
function resolveInferenceDeviceEligibility(probed, stored, canRunRoot, isPoolUsable, isRootSwitchedOn, absentReason) {
|
|
115803
115810
|
const eligible = {};
|
|
115804
115811
|
const excluded = [];
|
|
115805
115812
|
const merged = mergeInferenceDevices(probed, stored);
|
|
115806
|
-
const acceleratorServes = merged.some((d) => !isCpuFallback(d) && d.enabled && d.available && (!canRunRoot || canRunRoot(d.format)) && (!isRootSwitchedOn || isRootSwitchedOn(d.key)));
|
|
115813
|
+
const acceleratorServes = merged.some((d) => !isCpuFallback(d) && d.enabled && d.available && (absentReason?.(d.key) ?? null) === null && (!canRunRoot || canRunRoot(d.format)) && (!isRootSwitchedOn || isRootSwitchedOn(d.key)));
|
|
115807
115814
|
for (const d of merged) {
|
|
115808
115815
|
if (!d.enabled) {
|
|
115809
115816
|
excluded.push({
|
|
@@ -115821,6 +115828,15 @@ function resolveInferenceDeviceEligibility(probed, stored, canRunRoot, isPoolUsa
|
|
|
115821
115828
|
});
|
|
115822
115829
|
continue;
|
|
115823
115830
|
}
|
|
115831
|
+
const absent = absentReason?.(d.key) ?? null;
|
|
115832
|
+
if (absent !== null) {
|
|
115833
|
+
excluded.push({
|
|
115834
|
+
key: d.key,
|
|
115835
|
+
reason: absent,
|
|
115836
|
+
format: d.format
|
|
115837
|
+
});
|
|
115838
|
+
continue;
|
|
115839
|
+
}
|
|
115824
115840
|
if (isPoolUsable && !isPoolUsable(d.key)) {
|
|
115825
115841
|
excluded.push({
|
|
115826
115842
|
key: d.key,
|
|
@@ -122270,10 +122286,14 @@ function pickInferenceDevice(input) {
|
|
|
122270
122286
|
eligibleKeys
|
|
122271
122287
|
};
|
|
122272
122288
|
const pin = input.pinnedDeviceKey ?? null;
|
|
122273
|
-
|
|
122274
|
-
|
|
122275
|
-
|
|
122276
|
-
|
|
122289
|
+
const sole = eligibleKeys.length === 1 ? eligibleKeys[0] : void 0;
|
|
122290
|
+
if (sole !== void 0 && !pin) return {
|
|
122291
|
+
kind: "selected",
|
|
122292
|
+
deviceKey: sole,
|
|
122293
|
+
reason: "sole-eligible",
|
|
122294
|
+
tieBreak: null,
|
|
122295
|
+
eligibleKeys,
|
|
122296
|
+
tiedKeys: eligibleKeys
|
|
122277
122297
|
};
|
|
122278
122298
|
const loadByKey = new Map((input.loads ?? []).map((l) => [l.deviceKey, l]));
|
|
122279
122299
|
const healthyKeys = eligibleKeys.filter((k) => !isDeviceSaturated(loadByKey.get(k)));
|
|
@@ -122869,9 +122889,10 @@ function rootRefusal(input, droppedRoots) {
|
|
|
122869
122889
|
/**
|
|
122870
122890
|
* Whose provisioning an attach applies. The elected device when there is one.
|
|
122871
122891
|
* With NO elected device the runner's default pool serves the camera; when the
|
|
122872
|
-
* node has exactly one eligible device
|
|
122873
|
-
*
|
|
122874
|
-
*
|
|
122892
|
+
* node has exactly one eligible device (a Mac's `coreml:all`, an N100 with only
|
|
122893
|
+
* its iGPU on) that default pool IS that device. The balancer now elects such a
|
|
122894
|
+
* device itself (`sole-eligible`), so this branch serves a default-pool
|
|
122895
|
+
* dispatch on a one-device node; its model pin and the
|
|
122875
122896
|
* camera's override stored under its key apply (D745 — before, the empty key
|
|
122876
122897
|
* was read, which no store writes, and the pin was silently never run).
|
|
122877
122898
|
* Otherwise `''`: the node's folded settings with no hardware fields.
|
|
@@ -135120,7 +135141,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
|
|
|
135120
135141
|
return {
|
|
135121
135142
|
nodeId,
|
|
135122
135143
|
reachable,
|
|
135123
|
-
devices: annotateInferenceDeviceExclusions(mergeInferenceDevices(probed, stored), resolveInferenceDeviceEligibility(probed, stored, canRunRoot, (deviceKey) => this.inferenceDeviceUsability.isUsable(nodeId, deviceKey), catalog ? makeRootSwitchGuard(catalog, await this.settingsStore.readClusterStepModes(), node) : void 0)).map((row) => !reachable && row.presence === "absent" ? {
|
|
135144
|
+
devices: annotateInferenceDeviceExclusions(mergeInferenceDevices(probed, stored), resolveInferenceDeviceEligibility(probed, stored, canRunRoot, (deviceKey) => this.inferenceDeviceUsability.isUsable(nodeId, deviceKey), catalog ? makeRootSwitchGuard(catalog, await this.settingsStore.readClusterStepModes(), node) : void 0, this.absentReasonFor(nodeId))).map((row) => !reachable && row.presence === "absent" ? {
|
|
135124
135145
|
...row,
|
|
135125
135146
|
presence: "unknown"
|
|
135126
135147
|
} : row)
|
|
@@ -135195,6 +135216,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
|
|
|
135195
135216
|
* again, not elected against the list it left with.
|
|
135196
135217
|
*/
|
|
135197
135218
|
forgetInferenceDeviceProbe(nodeId) {
|
|
135219
|
+
this.absentInferenceDevices.delete(nodeId);
|
|
135198
135220
|
if (!this.lastInferenceDeviceProbe.delete(nodeId)) return;
|
|
135199
135221
|
this.ctx.logger.info("inference device probe forgotten — the node left", {
|
|
135200
135222
|
tags: { nodeId },
|
|
@@ -135280,7 +135302,8 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
|
|
|
135280
135302
|
});
|
|
135281
135303
|
return;
|
|
135282
135304
|
}
|
|
135283
|
-
this.noteInferenceDeviceHealth(nodeId, poolHealth, probe.probed.map((d) => d.key));
|
|
135305
|
+
this.noteInferenceDeviceHealth(nodeId, poolHealth === null ? null : poolHealth.refused, probe.probed.map((d) => d.key));
|
|
135306
|
+
if (poolHealth !== null) this.noteAbsentInferenceDevices(nodeId, poolHealth.absent);
|
|
135284
135307
|
const previous = this.lastInferenceDeviceProbe.get(nodeId);
|
|
135285
135308
|
this.lastInferenceDeviceProbe.set(nodeId, probe.probed);
|
|
135286
135309
|
if (previous === void 0 || probedDeviceSignature(previous) !== probedDeviceSignature(probe.probed)) {
|
|
@@ -135303,7 +135326,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
|
|
|
135303
135326
|
/** Eligibility from a device list + catalog; records usability like every dispatch read. */
|
|
135304
135327
|
async electableDevices(nodeId, probed, catalog) {
|
|
135305
135328
|
const node = (await this.settingsStore.readAgentSettingsMap())[nodeId];
|
|
135306
|
-
const eligibility = resolveInferenceDeviceEligibility(probed, node?.inferenceDevices ?? {}, catalog ? makeRootCapabilityGuard(catalog) : void 0, (deviceKey) => this.inferenceDeviceUsability.isUsable(nodeId, deviceKey), catalog ? makeRootSwitchGuard(catalog, await this.settingsStore.readClusterStepModes(), node) : void 0);
|
|
135329
|
+
const eligibility = resolveInferenceDeviceEligibility(probed, node?.inferenceDevices ?? {}, catalog ? makeRootCapabilityGuard(catalog) : void 0, (deviceKey) => this.inferenceDeviceUsability.isUsable(nodeId, deviceKey), catalog ? makeRootSwitchGuard(catalog, await this.settingsStore.readClusterStepModes(), node) : void 0, this.absentReasonFor(nodeId));
|
|
135307
135330
|
const { eligible, excluded } = eligibility;
|
|
135308
135331
|
this.logInferenceDeviceShrinkage(nodeId, eligible, excluded);
|
|
135309
135332
|
this.noteNodeInferenceUsability(nodeId, resolveNodeInferenceUsability(eligibility));
|
|
@@ -135385,6 +135408,34 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
|
|
|
135385
135408
|
*/
|
|
135386
135409
|
inferenceDeviceUsability = new InferenceDeviceUsabilityMirror();
|
|
135387
135410
|
/**
|
|
135411
|
+
* Per node, the devices the executor reports the RUNTIME does not enumerate,
|
|
135412
|
+
* with the named reason. Replaced wholesale by each answered health read (an
|
|
135413
|
+
* empty answer clears it — the driver was fixed); a failed read never reaches
|
|
135414
|
+
* it. Read synchronously by the eligibility resolution.
|
|
135415
|
+
*/
|
|
135416
|
+
absentInferenceDevices = /* @__PURE__ */ new Map();
|
|
135417
|
+
absentReasonFor(nodeId) {
|
|
135418
|
+
return (deviceKey) => this.absentInferenceDevices.get(nodeId)?.get(deviceKey) ?? null;
|
|
135419
|
+
}
|
|
135420
|
+
noteAbsentInferenceDevices(nodeId, absent) {
|
|
135421
|
+
const before = this.absentInferenceDevices.get(nodeId);
|
|
135422
|
+
const signature = (m) => [...m ?? []].map(([k, r]) => `${k}=${r}`).toSorted().join(",");
|
|
135423
|
+
if (signature(before) === signature(absent)) return;
|
|
135424
|
+
if (absent.size === 0) this.absentInferenceDevices.delete(nodeId);
|
|
135425
|
+
else this.absentInferenceDevices.set(nodeId, absent);
|
|
135426
|
+
this.ctx.logger.warn("inference devices: the runtime reports devices it does not see", {
|
|
135427
|
+
tags: { nodeId },
|
|
135428
|
+
meta: {
|
|
135429
|
+
nodeId,
|
|
135430
|
+
absent: [...absent].map(([deviceKey, reason]) => ({
|
|
135431
|
+
deviceKey,
|
|
135432
|
+
reason
|
|
135433
|
+
}))
|
|
135434
|
+
}
|
|
135435
|
+
});
|
|
135436
|
+
this.noteShareChange(`devices:${nodeId}`);
|
|
135437
|
+
}
|
|
135438
|
+
/**
|
|
135388
135439
|
* Ask ONE node's detection executor which of its inference devices it is
|
|
135389
135440
|
* currently refusing.
|
|
135390
135441
|
*
|
|
@@ -135400,7 +135451,13 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
|
|
|
135400
135451
|
try {
|
|
135401
135452
|
const api = this.ctx.api;
|
|
135402
135453
|
if (!api) return null;
|
|
135403
|
-
|
|
135454
|
+
const health = await api.pipelineExecutor.getInferenceDeviceHealth.query({ nodeId });
|
|
135455
|
+
const absent = /* @__PURE__ */ new Map();
|
|
135456
|
+
for (const entry of health.unhealthy) if (entry.absentReason !== void 0) absent.set(entry.deviceKey, entry.absentReason);
|
|
135457
|
+
return {
|
|
135458
|
+
refused: health.unhealthy.filter((e) => e.absentReason === void 0).map((e) => e.deviceKey),
|
|
135459
|
+
absent
|
|
135460
|
+
};
|
|
135404
135461
|
} catch (err) {
|
|
135405
135462
|
this.ctx.logger.warn("inference device health read failed — mirror left unchanged", {
|
|
135406
135463
|
tags: { nodeId },
|
|
@@ -135764,7 +135821,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
|
|
|
135764
135821
|
if (probed === void 0) continue;
|
|
135765
135822
|
const stored = blob[nodeId]?.inferenceDevices ?? {};
|
|
135766
135823
|
const catalog = this.settingsStore.peekCatalogForAgent(nodeId);
|
|
135767
|
-
const eligibility = resolveInferenceDeviceEligibility(probed, stored, catalog ? makeRootCapabilityGuard(catalog) : void 0, (deviceKey) => this.inferenceDeviceUsability.isUsable(nodeId, deviceKey), catalog ? makeRootSwitchGuard(catalog, clusterModes, blob[nodeId]) : void 0);
|
|
135824
|
+
const eligibility = resolveInferenceDeviceEligibility(probed, stored, catalog ? makeRootCapabilityGuard(catalog) : void 0, (deviceKey) => this.inferenceDeviceUsability.isUsable(nodeId, deviceKey), catalog ? makeRootSwitchGuard(catalog, clusterModes, blob[nodeId]) : void 0, this.absentReasonFor(nodeId));
|
|
135768
135825
|
out[nodeId] = annotateInferenceDeviceExclusions(mergeInferenceDevices(probed, stored), eligibility).map((d) => ({
|
|
135769
135826
|
key: d.key,
|
|
135770
135827
|
available: d.available,
|
package/dist/index.mjs
CHANGED
|
@@ -73863,7 +73863,13 @@ var pipelineExecutorCapability = {
|
|
|
73863
73863
|
/** Pool deaths inside the current window. */
|
|
73864
73864
|
deaths: number$1(),
|
|
73865
73865
|
/** The last death's message. */
|
|
73866
|
-
lastError: string()
|
|
73866
|
+
lastError: string(),
|
|
73867
|
+
/**
|
|
73868
|
+
* Present when the device is ABSENT rather than dead: the runtime
|
|
73869
|
+
* itself enumerates no such device (`no-gpu-device` — OpenVINO sees
|
|
73870
|
+
* no supported GPU; driver/runtime does not support this iGPU).
|
|
73871
|
+
*/
|
|
73872
|
+
absentReason: _enum(["no-gpu-device"]).optional()
|
|
73867
73873
|
})).readonly() })),
|
|
73868
73874
|
/**
|
|
73869
73875
|
* Re-arm a terminally `failed` inference device on `nodeId`: forget its
|
|
@@ -81734,7 +81740,8 @@ var InferenceDeviceExclusionReasonSchema = _enum([
|
|
|
81734
81740
|
"unavailable",
|
|
81735
81741
|
"cannot-host-camera-root",
|
|
81736
81742
|
"accelerator-preferred",
|
|
81737
|
-
"root-switched-off"
|
|
81743
|
+
"root-switched-off",
|
|
81744
|
+
"no-gpu-device"
|
|
81738
81745
|
]);
|
|
81739
81746
|
var NodeInferenceDeviceSchema = object({
|
|
81740
81747
|
/** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
|
|
@@ -115771,11 +115778,11 @@ function inferenceDeviceCaps(stored) {
|
|
|
115771
115778
|
function isCpuFallback(view) {
|
|
115772
115779
|
return view.backend === "cpu";
|
|
115773
115780
|
}
|
|
115774
|
-
function resolveInferenceDeviceEligibility(probed, stored, canRunRoot, isPoolUsable, isRootSwitchedOn) {
|
|
115781
|
+
function resolveInferenceDeviceEligibility(probed, stored, canRunRoot, isPoolUsable, isRootSwitchedOn, absentReason) {
|
|
115775
115782
|
const eligible = {};
|
|
115776
115783
|
const excluded = [];
|
|
115777
115784
|
const merged = mergeInferenceDevices(probed, stored);
|
|
115778
|
-
const acceleratorServes = merged.some((d) => !isCpuFallback(d) && d.enabled && d.available && (!canRunRoot || canRunRoot(d.format)) && (!isRootSwitchedOn || isRootSwitchedOn(d.key)));
|
|
115785
|
+
const acceleratorServes = merged.some((d) => !isCpuFallback(d) && d.enabled && d.available && (absentReason?.(d.key) ?? null) === null && (!canRunRoot || canRunRoot(d.format)) && (!isRootSwitchedOn || isRootSwitchedOn(d.key)));
|
|
115779
115786
|
for (const d of merged) {
|
|
115780
115787
|
if (!d.enabled) {
|
|
115781
115788
|
excluded.push({
|
|
@@ -115793,6 +115800,15 @@ function resolveInferenceDeviceEligibility(probed, stored, canRunRoot, isPoolUsa
|
|
|
115793
115800
|
});
|
|
115794
115801
|
continue;
|
|
115795
115802
|
}
|
|
115803
|
+
const absent = absentReason?.(d.key) ?? null;
|
|
115804
|
+
if (absent !== null) {
|
|
115805
|
+
excluded.push({
|
|
115806
|
+
key: d.key,
|
|
115807
|
+
reason: absent,
|
|
115808
|
+
format: d.format
|
|
115809
|
+
});
|
|
115810
|
+
continue;
|
|
115811
|
+
}
|
|
115796
115812
|
if (isPoolUsable && !isPoolUsable(d.key)) {
|
|
115797
115813
|
excluded.push({
|
|
115798
115814
|
key: d.key,
|
|
@@ -122242,10 +122258,14 @@ function pickInferenceDevice(input) {
|
|
|
122242
122258
|
eligibleKeys
|
|
122243
122259
|
};
|
|
122244
122260
|
const pin = input.pinnedDeviceKey ?? null;
|
|
122245
|
-
|
|
122246
|
-
|
|
122247
|
-
|
|
122248
|
-
|
|
122261
|
+
const sole = eligibleKeys.length === 1 ? eligibleKeys[0] : void 0;
|
|
122262
|
+
if (sole !== void 0 && !pin) return {
|
|
122263
|
+
kind: "selected",
|
|
122264
|
+
deviceKey: sole,
|
|
122265
|
+
reason: "sole-eligible",
|
|
122266
|
+
tieBreak: null,
|
|
122267
|
+
eligibleKeys,
|
|
122268
|
+
tiedKeys: eligibleKeys
|
|
122249
122269
|
};
|
|
122250
122270
|
const loadByKey = new Map((input.loads ?? []).map((l) => [l.deviceKey, l]));
|
|
122251
122271
|
const healthyKeys = eligibleKeys.filter((k) => !isDeviceSaturated(loadByKey.get(k)));
|
|
@@ -122841,9 +122861,10 @@ function rootRefusal(input, droppedRoots) {
|
|
|
122841
122861
|
/**
|
|
122842
122862
|
* Whose provisioning an attach applies. The elected device when there is one.
|
|
122843
122863
|
* With NO elected device the runner's default pool serves the camera; when the
|
|
122844
|
-
* node has exactly one eligible device
|
|
122845
|
-
*
|
|
122846
|
-
*
|
|
122864
|
+
* node has exactly one eligible device (a Mac's `coreml:all`, an N100 with only
|
|
122865
|
+
* its iGPU on) that default pool IS that device. The balancer now elects such a
|
|
122866
|
+
* device itself (`sole-eligible`), so this branch serves a default-pool
|
|
122867
|
+
* dispatch on a one-device node; its model pin and the
|
|
122847
122868
|
* camera's override stored under its key apply (D745 — before, the empty key
|
|
122848
122869
|
* was read, which no store writes, and the pin was silently never run).
|
|
122849
122870
|
* Otherwise `''`: the node's folded settings with no hardware fields.
|
|
@@ -135092,7 +135113,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
|
|
|
135092
135113
|
return {
|
|
135093
135114
|
nodeId,
|
|
135094
135115
|
reachable,
|
|
135095
|
-
devices: annotateInferenceDeviceExclusions(mergeInferenceDevices(probed, stored), resolveInferenceDeviceEligibility(probed, stored, canRunRoot, (deviceKey) => this.inferenceDeviceUsability.isUsable(nodeId, deviceKey), catalog ? makeRootSwitchGuard(catalog, await this.settingsStore.readClusterStepModes(), node) : void 0)).map((row) => !reachable && row.presence === "absent" ? {
|
|
135116
|
+
devices: annotateInferenceDeviceExclusions(mergeInferenceDevices(probed, stored), resolveInferenceDeviceEligibility(probed, stored, canRunRoot, (deviceKey) => this.inferenceDeviceUsability.isUsable(nodeId, deviceKey), catalog ? makeRootSwitchGuard(catalog, await this.settingsStore.readClusterStepModes(), node) : void 0, this.absentReasonFor(nodeId))).map((row) => !reachable && row.presence === "absent" ? {
|
|
135096
135117
|
...row,
|
|
135097
135118
|
presence: "unknown"
|
|
135098
135119
|
} : row)
|
|
@@ -135167,6 +135188,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
|
|
|
135167
135188
|
* again, not elected against the list it left with.
|
|
135168
135189
|
*/
|
|
135169
135190
|
forgetInferenceDeviceProbe(nodeId) {
|
|
135191
|
+
this.absentInferenceDevices.delete(nodeId);
|
|
135170
135192
|
if (!this.lastInferenceDeviceProbe.delete(nodeId)) return;
|
|
135171
135193
|
this.ctx.logger.info("inference device probe forgotten — the node left", {
|
|
135172
135194
|
tags: { nodeId },
|
|
@@ -135252,7 +135274,8 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
|
|
|
135252
135274
|
});
|
|
135253
135275
|
return;
|
|
135254
135276
|
}
|
|
135255
|
-
this.noteInferenceDeviceHealth(nodeId, poolHealth, probe.probed.map((d) => d.key));
|
|
135277
|
+
this.noteInferenceDeviceHealth(nodeId, poolHealth === null ? null : poolHealth.refused, probe.probed.map((d) => d.key));
|
|
135278
|
+
if (poolHealth !== null) this.noteAbsentInferenceDevices(nodeId, poolHealth.absent);
|
|
135256
135279
|
const previous = this.lastInferenceDeviceProbe.get(nodeId);
|
|
135257
135280
|
this.lastInferenceDeviceProbe.set(nodeId, probe.probed);
|
|
135258
135281
|
if (previous === void 0 || probedDeviceSignature(previous) !== probedDeviceSignature(probe.probed)) {
|
|
@@ -135275,7 +135298,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
|
|
|
135275
135298
|
/** Eligibility from a device list + catalog; records usability like every dispatch read. */
|
|
135276
135299
|
async electableDevices(nodeId, probed, catalog) {
|
|
135277
135300
|
const node = (await this.settingsStore.readAgentSettingsMap())[nodeId];
|
|
135278
|
-
const eligibility = resolveInferenceDeviceEligibility(probed, node?.inferenceDevices ?? {}, catalog ? makeRootCapabilityGuard(catalog) : void 0, (deviceKey) => this.inferenceDeviceUsability.isUsable(nodeId, deviceKey), catalog ? makeRootSwitchGuard(catalog, await this.settingsStore.readClusterStepModes(), node) : void 0);
|
|
135301
|
+
const eligibility = resolveInferenceDeviceEligibility(probed, node?.inferenceDevices ?? {}, catalog ? makeRootCapabilityGuard(catalog) : void 0, (deviceKey) => this.inferenceDeviceUsability.isUsable(nodeId, deviceKey), catalog ? makeRootSwitchGuard(catalog, await this.settingsStore.readClusterStepModes(), node) : void 0, this.absentReasonFor(nodeId));
|
|
135279
135302
|
const { eligible, excluded } = eligibility;
|
|
135280
135303
|
this.logInferenceDeviceShrinkage(nodeId, eligible, excluded);
|
|
135281
135304
|
this.noteNodeInferenceUsability(nodeId, resolveNodeInferenceUsability(eligibility));
|
|
@@ -135357,6 +135380,34 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
|
|
|
135357
135380
|
*/
|
|
135358
135381
|
inferenceDeviceUsability = new InferenceDeviceUsabilityMirror();
|
|
135359
135382
|
/**
|
|
135383
|
+
* Per node, the devices the executor reports the RUNTIME does not enumerate,
|
|
135384
|
+
* with the named reason. Replaced wholesale by each answered health read (an
|
|
135385
|
+
* empty answer clears it — the driver was fixed); a failed read never reaches
|
|
135386
|
+
* it. Read synchronously by the eligibility resolution.
|
|
135387
|
+
*/
|
|
135388
|
+
absentInferenceDevices = /* @__PURE__ */ new Map();
|
|
135389
|
+
absentReasonFor(nodeId) {
|
|
135390
|
+
return (deviceKey) => this.absentInferenceDevices.get(nodeId)?.get(deviceKey) ?? null;
|
|
135391
|
+
}
|
|
135392
|
+
noteAbsentInferenceDevices(nodeId, absent) {
|
|
135393
|
+
const before = this.absentInferenceDevices.get(nodeId);
|
|
135394
|
+
const signature = (m) => [...m ?? []].map(([k, r]) => `${k}=${r}`).toSorted().join(",");
|
|
135395
|
+
if (signature(before) === signature(absent)) return;
|
|
135396
|
+
if (absent.size === 0) this.absentInferenceDevices.delete(nodeId);
|
|
135397
|
+
else this.absentInferenceDevices.set(nodeId, absent);
|
|
135398
|
+
this.ctx.logger.warn("inference devices: the runtime reports devices it does not see", {
|
|
135399
|
+
tags: { nodeId },
|
|
135400
|
+
meta: {
|
|
135401
|
+
nodeId,
|
|
135402
|
+
absent: [...absent].map(([deviceKey, reason]) => ({
|
|
135403
|
+
deviceKey,
|
|
135404
|
+
reason
|
|
135405
|
+
}))
|
|
135406
|
+
}
|
|
135407
|
+
});
|
|
135408
|
+
this.noteShareChange(`devices:${nodeId}`);
|
|
135409
|
+
}
|
|
135410
|
+
/**
|
|
135360
135411
|
* Ask ONE node's detection executor which of its inference devices it is
|
|
135361
135412
|
* currently refusing.
|
|
135362
135413
|
*
|
|
@@ -135372,7 +135423,13 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
|
|
|
135372
135423
|
try {
|
|
135373
135424
|
const api = this.ctx.api;
|
|
135374
135425
|
if (!api) return null;
|
|
135375
|
-
|
|
135426
|
+
const health = await api.pipelineExecutor.getInferenceDeviceHealth.query({ nodeId });
|
|
135427
|
+
const absent = /* @__PURE__ */ new Map();
|
|
135428
|
+
for (const entry of health.unhealthy) if (entry.absentReason !== void 0) absent.set(entry.deviceKey, entry.absentReason);
|
|
135429
|
+
return {
|
|
135430
|
+
refused: health.unhealthy.filter((e) => e.absentReason === void 0).map((e) => e.deviceKey),
|
|
135431
|
+
absent
|
|
135432
|
+
};
|
|
135376
135433
|
} catch (err) {
|
|
135377
135434
|
this.ctx.logger.warn("inference device health read failed — mirror left unchanged", {
|
|
135378
135435
|
tags: { nodeId },
|
|
@@ -135736,7 +135793,7 @@ var PipelineOrchestratorAddon = class PipelineOrchestratorAddon extends BaseAddo
|
|
|
135736
135793
|
if (probed === void 0) continue;
|
|
135737
135794
|
const stored = blob[nodeId]?.inferenceDevices ?? {};
|
|
135738
135795
|
const catalog = this.settingsStore.peekCatalogForAgent(nodeId);
|
|
135739
|
-
const eligibility = resolveInferenceDeviceEligibility(probed, stored, catalog ? makeRootCapabilityGuard(catalog) : void 0, (deviceKey) => this.inferenceDeviceUsability.isUsable(nodeId, deviceKey), catalog ? makeRootSwitchGuard(catalog, clusterModes, blob[nodeId]) : void 0);
|
|
135796
|
+
const eligibility = resolveInferenceDeviceEligibility(probed, stored, catalog ? makeRootCapabilityGuard(catalog) : void 0, (deviceKey) => this.inferenceDeviceUsability.isUsable(nodeId, deviceKey), catalog ? makeRootSwitchGuard(catalog, clusterModes, blob[nodeId]) : void 0, this.absentReasonFor(nodeId));
|
|
135740
135797
|
out[nodeId] = annotateInferenceDeviceExclusions(mergeInferenceDevices(probed, stored), eligibility).map((d) => ({
|
|
135741
135798
|
key: d.key,
|
|
135742
135799
|
available: d.available,
|
package/dist/remoteEntry.js
CHANGED
|
@@ -30,7 +30,7 @@ async function d(e) {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
async function f() {
|
|
33
|
-
return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-
|
|
33
|
+
return l ||= d(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-Dok-wGGT.mjs")).catch((e) => {
|
|
34
34
|
throw l = void 0, e;
|
|
35
35
|
}), l;
|
|
36
36
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-pipeline-orchestrator",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.706",
|
|
4
4
|
"description": "Hub-side camera-to-agent load balancer — tracks runner capacity and dispatches attachCamera calls to the optimal pipeline-runner instance",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
}
|
|
77
77
|
],
|
|
78
78
|
"requires": {
|
|
79
|
-
"server": ">=1.2.
|
|
79
|
+
"server": ">=1.2.905"
|
|
80
80
|
}
|
|
81
81
|
},
|
|
82
82
|
"files": [
|