@bian-womp/spark-graph 0.3.3 → 0.3.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/lib/cjs/index.cjs +11 -5
- package/lib/cjs/index.cjs.map +1 -1
- package/lib/cjs/src/core/types.d.ts +4 -1
- package/lib/cjs/src/core/types.d.ts.map +1 -1
- package/lib/cjs/src/runtime/components/NodeExecutor.d.ts.map +1 -1
- package/lib/cjs/src/runtime/components/RunContextManager.d.ts +1 -1
- package/lib/cjs/src/runtime/components/RunContextManager.d.ts.map +1 -1
- package/lib/esm/index.js +11 -5
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/src/core/types.d.ts +4 -1
- package/lib/esm/src/core/types.d.ts.map +1 -1
- package/lib/esm/src/runtime/components/NodeExecutor.d.ts.map +1 -1
- package/lib/esm/src/runtime/components/RunContextManager.d.ts +1 -1
- package/lib/esm/src/runtime/components/RunContextManager.d.ts.map +1 -1
- package/package.json +2 -2
package/lib/cjs/index.cjs
CHANGED
|
@@ -1528,10 +1528,16 @@ class NodeExecutor {
|
|
|
1528
1528
|
invalidateDownstream: () => {
|
|
1529
1529
|
this.edgePropagator.invalidateDownstream(nodeId);
|
|
1530
1530
|
},
|
|
1531
|
-
execute: () => {
|
|
1531
|
+
execute: (resolve, opts) => {
|
|
1532
1532
|
if (this.graph.allInboundHaveValue(nodeId)) {
|
|
1533
|
-
|
|
1534
|
-
this.
|
|
1533
|
+
let runContextIdsToUse = this.runtime.getRunMode() === "auto" ? undefined : runContextIds;
|
|
1534
|
+
if (this.runtime.getRunMode() === "manual" &&
|
|
1535
|
+
(!runContextIds || runContextIds.size === 0)) {
|
|
1536
|
+
runContextIdsToUse = new Set([
|
|
1537
|
+
this.runContextManager.createRunContext(nodeId, resolve, opts),
|
|
1538
|
+
]);
|
|
1539
|
+
}
|
|
1540
|
+
this.execute(nodeId, runContextIdsToUse);
|
|
1535
1541
|
}
|
|
1536
1542
|
},
|
|
1537
1543
|
getInput: (handle) => inputs[handle],
|
|
@@ -1555,11 +1561,11 @@ class NodeExecutor {
|
|
|
1555
1561
|
return;
|
|
1556
1562
|
}
|
|
1557
1563
|
if (runMode === "manual" && (!runContextIds || runContextIds.size === 0)) {
|
|
1558
|
-
console.warn("NodeExecutor.execute: no runContextIds provided, skipping execution");
|
|
1564
|
+
console.warn("NodeExecutor.execute: no runContextIds provided in manual mode, skipping execution");
|
|
1559
1565
|
return;
|
|
1560
1566
|
}
|
|
1561
1567
|
if (runMode === "auto" && runContextIds && runContextIds.size > 0) {
|
|
1562
|
-
console.warn("NodeExecutor.execute: runContextIds provided in auto
|
|
1568
|
+
console.warn("NodeExecutor.execute: runContextIds provided in auto mode, ignoring");
|
|
1563
1569
|
runContextIds = undefined;
|
|
1564
1570
|
}
|
|
1565
1571
|
// Early validation for auto-mode paused state
|