@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/node.js CHANGED
@@ -2540,8 +2540,8 @@ class TopologicalScheduler {
2540
2540
  yield this.sortedNodes[this.currentIndex++];
2541
2541
  }
2542
2542
  }
2543
- onTaskCompleted(taskId) {}
2544
- onTaskStreaming(taskId) {}
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, streamMode) {
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((arg) => "\uD835\uDC53").join("‖")}‖`;
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, incomingDataflows, taskOrder, indent, depth, lines) {
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;
@@ -7571,4 +7571,4 @@ export {
7571
7571
  BROWSER_GRANTS
7572
7572
  };
7573
7573
 
7574
- //# debugId=E394F7013EA0361364756E2164756E21
7574
+ //# debugId=EF6CF8955D16C19064756E2164756E21