@bian-womp/spark-graph 0.3.84 → 0.3.85
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/lib/cjs/index.cjs
CHANGED
|
@@ -4274,6 +4274,22 @@ class GraphRuntime {
|
|
|
4274
4274
|
return;
|
|
4275
4275
|
this.hydrate({ outputs: { [toNodeId]: { ...fromNode.outputs } } }, { invalidate: !options?.dry });
|
|
4276
4276
|
this.handleResolver.scheduleRecomputeHandles(toNodeId);
|
|
4277
|
+
if (options?.dry) {
|
|
4278
|
+
// Dry copy should propagate values only, never schedule node execution.
|
|
4279
|
+
const runContextId = this.runContextManager.createRunContext(toNodeId, { propagate: false });
|
|
4280
|
+
const runContextIds = new Set([runContextId]);
|
|
4281
|
+
try {
|
|
4282
|
+
for (const [handle, value] of Object.entries(fromNode.outputs || {})) {
|
|
4283
|
+
if (value !== undefined) {
|
|
4284
|
+
this.propagate(toNodeId, handle, value, runContextIds);
|
|
4285
|
+
}
|
|
4286
|
+
}
|
|
4287
|
+
}
|
|
4288
|
+
finally {
|
|
4289
|
+
this.runContextManager.releaseScheduling(runContextId);
|
|
4290
|
+
}
|
|
4291
|
+
return;
|
|
4292
|
+
}
|
|
4277
4293
|
this.executeNodeAutoRun(toNodeId, { reason: "copyOutputs" });
|
|
4278
4294
|
}
|
|
4279
4295
|
hydrate(payload, opts) {
|