@leitwerk-dev/server 0.1.3 → 0.1.4
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/dist/{chunk-P7YDIR2I.js → chunk-Y7MYAKGS.js} +3 -2
- package/dist/chunk-Y7MYAKGS.js.map +1 -0
- package/dist/supervisor/adoption/worker-adoption-coordinator.d.ts.map +1 -1
- package/dist/supervisor/adoption/worker-adoption-coordinator.js +3 -1
- package/dist/supervisor/adoption/worker-adoption-coordinator.js.map +1 -1
- package/package.json +10 -10
- package/src/supervisor/adoption/worker-adoption-coordinator.ts +4 -1
- package/dist/chunk-P7YDIR2I.js.map +0 -1
|
@@ -9245,11 +9245,12 @@ function createWorkerAdoptionCoordinator(deps) {
|
|
|
9245
9245
|
for (const descriptor of descriptors) {
|
|
9246
9246
|
const lease = deps.safeGetLeaseByInstance(descriptor.instanceId);
|
|
9247
9247
|
const process2 = deps.safeGetProcessById(descriptor.instanceId);
|
|
9248
|
+
const canAdoptCurrentWorker = descriptor.observedState !== "terminal" && process2?.currentExecution?.kind === "worker_start";
|
|
9248
9249
|
const classification = classifyWorkerDescriptor({
|
|
9249
9250
|
descriptor,
|
|
9250
9251
|
process: process2,
|
|
9251
9252
|
lease,
|
|
9252
|
-
expectedModelPolicyFingerprint:
|
|
9253
|
+
expectedModelPolicyFingerprint: canAdoptCurrentWorker ? deps.modelPolicyFingerprintForProcess(process2) : "",
|
|
9253
9254
|
alreadyAttached: deps.workers.has(descriptor.instanceId),
|
|
9254
9255
|
attachedDescriptorKey: attachedWorkerDescriptorKey(
|
|
9255
9256
|
deps.workers.get(descriptor.instanceId)
|
|
@@ -18159,4 +18160,4 @@ export {
|
|
|
18159
18160
|
createApp,
|
|
18160
18161
|
createAppContext
|
|
18161
18162
|
};
|
|
18162
|
-
//# sourceMappingURL=chunk-
|
|
18163
|
+
//# sourceMappingURL=chunk-Y7MYAKGS.js.map
|