@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/bun.js
CHANGED
|
@@ -2541,8 +2541,8 @@ class TopologicalScheduler {
|
|
|
2541
2541
|
yield this.sortedNodes[this.currentIndex++];
|
|
2542
2542
|
}
|
|
2543
2543
|
}
|
|
2544
|
-
onTaskCompleted(
|
|
2545
|
-
onTaskStreaming(
|
|
2544
|
+
onTaskCompleted(_taskId) {}
|
|
2545
|
+
onTaskStreaming(_taskId) {}
|
|
2546
2546
|
reset() {
|
|
2547
2547
|
this.sortedNodes = this.dag.topologicallySortedNodes();
|
|
2548
2548
|
this.currentIndex = 0;
|
|
@@ -3102,7 +3102,7 @@ class TaskGraphRunner {
|
|
|
3102
3102
|
}
|
|
3103
3103
|
});
|
|
3104
3104
|
}
|
|
3105
|
-
pushStreamToEdges(task,
|
|
3105
|
+
pushStreamToEdges(task, _streamMode) {
|
|
3106
3106
|
const targetDataflows = this.graph.getTargetDataflows(task.id);
|
|
3107
3107
|
if (targetDataflows.length === 0)
|
|
3108
3108
|
return;
|
|
@@ -3419,9 +3419,9 @@ class GraphAsTask extends Task {
|
|
|
3419
3419
|
static compoundMerge = PROPERTY_ARRAY;
|
|
3420
3420
|
static hasDynamicSchemas = true;
|
|
3421
3421
|
static hasDynamicEntitlements = true;
|
|
3422
|
-
constructor(config = {}) {
|
|
3422
|
+
constructor(config = {}, runConfig = {}) {
|
|
3423
3423
|
const { subGraph, ...rest } = config;
|
|
3424
|
-
super(rest);
|
|
3424
|
+
super(rest, runConfig);
|
|
3425
3425
|
if (subGraph) {
|
|
3426
3426
|
this.subGraph = subGraph;
|
|
3427
3427
|
}
|
|
@@ -4132,7 +4132,7 @@ function parallel(args, mergeFn = PROPERTY_ARRAY, workflow = new Workflow) {
|
|
|
4132
4132
|
const config = {
|
|
4133
4133
|
compoundMerge: mergeFn
|
|
4134
4134
|
};
|
|
4135
|
-
const name = `\u2016${args.map((
|
|
4135
|
+
const name = `\u2016${args.map((_arg) => "\uD835\uDC53").join("\u2016")}\u2016`;
|
|
4136
4136
|
|
|
4137
4137
|
class ParallelTask extends GraphAsTask {
|
|
4138
4138
|
static type = name;
|
|
@@ -5013,7 +5013,7 @@ function generateRegularTask(task, chainIndent, lines) {
|
|
|
5013
5013
|
lines.push(`${chainIndent}.addTask(${args})`);
|
|
5014
5014
|
}
|
|
5015
5015
|
}
|
|
5016
|
-
function generateLoopTask(task, loopInfo,
|
|
5016
|
+
function generateLoopTask(task, loopInfo, _incomingDataflows, _taskOrder, indent, depth, lines) {
|
|
5017
5017
|
const chainIndent = indent.repeat(depth + 1);
|
|
5018
5018
|
const config = extractLoopConfig(task);
|
|
5019
5019
|
const loopColOffset = chainIndent.length + `.${loopInfo.method}(`.length;
|
|
@@ -7572,4 +7572,4 @@ export {
|
|
|
7572
7572
|
BROWSER_GRANTS
|
|
7573
7573
|
};
|
|
7574
7574
|
|
|
7575
|
-
//# debugId=
|
|
7575
|
+
//# debugId=04CDE9478AF1225664756E2164756E21
|