@workglow/task-graph 0.2.5 → 0.2.6
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/browser.js +8 -8
- package/dist/browser.js.map +8 -8
- package/dist/bun.js +8 -8
- package/dist/bun.js.map +8 -8
- package/dist/node.js +8 -8
- package/dist/node.js.map +8 -8
- package/dist/task/EntitlementEnforcer.d.ts +1 -1
- package/dist/task/EntitlementEnforcer.d.ts.map +1 -1
- package/dist/task/GraphAsTask.d.ts +7 -3
- package/dist/task/GraphAsTask.d.ts.map +1 -1
- package/dist/task/ITask.d.ts +3 -3
- package/dist/task/ITask.d.ts.map +1 -1
- package/dist/task-graph/GraphToWorkflowCode.d.ts.map +1 -1
- package/dist/task-graph/TaskGraphRunner.d.ts +2 -1
- package/dist/task-graph/TaskGraphRunner.d.ts.map +1 -1
- package/dist/task-graph/TaskGraphScheduler.d.ts +2 -2
- package/dist/task-graph/TaskGraphScheduler.d.ts.map +1 -1
- package/dist/task-graph/Workflow.d.ts +1 -1
- package/dist/task-graph/Workflow.d.ts.map +1 -1
- package/package.json +7 -7
package/dist/browser.js
CHANGED
|
@@ -2540,8 +2540,8 @@ class TopologicalScheduler {
|
|
|
2540
2540
|
yield this.sortedNodes[this.currentIndex++];
|
|
2541
2541
|
}
|
|
2542
2542
|
}
|
|
2543
|
-
onTaskCompleted(
|
|
2544
|
-
onTaskStreaming(
|
|
2543
|
+
onTaskCompleted(_taskId) {}
|
|
2544
|
+
onTaskStreaming(_taskId) {}
|
|
2545
2545
|
reset() {
|
|
2546
2546
|
this.sortedNodes = this.dag.topologicallySortedNodes();
|
|
2547
2547
|
this.currentIndex = 0;
|
|
@@ -3101,7 +3101,7 @@ class TaskGraphRunner {
|
|
|
3101
3101
|
}
|
|
3102
3102
|
});
|
|
3103
3103
|
}
|
|
3104
|
-
pushStreamToEdges(task,
|
|
3104
|
+
pushStreamToEdges(task, _streamMode) {
|
|
3105
3105
|
const targetDataflows = this.graph.getTargetDataflows(task.id);
|
|
3106
3106
|
if (targetDataflows.length === 0)
|
|
3107
3107
|
return;
|
|
@@ -3418,9 +3418,9 @@ class GraphAsTask extends Task {
|
|
|
3418
3418
|
static compoundMerge = PROPERTY_ARRAY;
|
|
3419
3419
|
static hasDynamicSchemas = true;
|
|
3420
3420
|
static hasDynamicEntitlements = true;
|
|
3421
|
-
constructor(config = {}) {
|
|
3421
|
+
constructor(config = {}, runConfig = {}) {
|
|
3422
3422
|
const { subGraph, ...rest } = config;
|
|
3423
|
-
super(rest);
|
|
3423
|
+
super(rest, runConfig);
|
|
3424
3424
|
if (subGraph) {
|
|
3425
3425
|
this.subGraph = subGraph;
|
|
3426
3426
|
}
|
|
@@ -4131,7 +4131,7 @@ function parallel(args, mergeFn = PROPERTY_ARRAY, workflow = new Workflow) {
|
|
|
4131
4131
|
const config = {
|
|
4132
4132
|
compoundMerge: mergeFn
|
|
4133
4133
|
};
|
|
4134
|
-
const name = `‖${args.map((
|
|
4134
|
+
const name = `‖${args.map((_arg) => "\uD835\uDC53").join("‖")}‖`;
|
|
4135
4135
|
|
|
4136
4136
|
class ParallelTask extends GraphAsTask {
|
|
4137
4137
|
static type = name;
|
|
@@ -5012,7 +5012,7 @@ function generateRegularTask(task, chainIndent, lines) {
|
|
|
5012
5012
|
lines.push(`${chainIndent}.addTask(${args})`);
|
|
5013
5013
|
}
|
|
5014
5014
|
}
|
|
5015
|
-
function generateLoopTask(task, loopInfo,
|
|
5015
|
+
function generateLoopTask(task, loopInfo, _incomingDataflows, _taskOrder, indent, depth, lines) {
|
|
5016
5016
|
const chainIndent = indent.repeat(depth + 1);
|
|
5017
5017
|
const config = extractLoopConfig(task);
|
|
5018
5018
|
const loopColOffset = chainIndent.length + `.${loopInfo.method}(`.length;
|
|
@@ -8208,4 +8208,4 @@ export {
|
|
|
8208
8208
|
BROWSER_GRANTS
|
|
8209
8209
|
};
|
|
8210
8210
|
|
|
8211
|
-
//# debugId=
|
|
8211
|
+
//# debugId=1664425925BB4C1264756E2164756E21
|