@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/bun.js CHANGED
@@ -2541,8 +2541,8 @@ class TopologicalScheduler {
2541
2541
  yield this.sortedNodes[this.currentIndex++];
2542
2542
  }
2543
2543
  }
2544
- onTaskCompleted(taskId) {}
2545
- onTaskStreaming(taskId) {}
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, streamMode) {
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((arg) => "\uD835\uDC53").join("\u2016")}\u2016`;
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, incomingDataflows, taskOrder, indent, depth, lines) {
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=68A264276606E85C64756E2164756E21
7575
+ //# debugId=04CDE9478AF1225664756E2164756E21