@workglow/task-graph 0.0.104 → 0.0.106

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
@@ -427,7 +427,11 @@ function stripOriginAnnotations(schema) {
427
427
  strippedProperties[key] = prop;
428
428
  continue;
429
429
  }
430
- const { "x-source-task-id": _id, "x-source-task-ids": _ids, ...rest } = prop;
430
+ const {
431
+ "x-source-task-id": _id,
432
+ "x-source-task-ids": _ids,
433
+ ...rest
434
+ } = prop;
431
435
  strippedProperties[key] = rest;
432
436
  }
433
437
  return { ...schema, properties: strippedProperties };
@@ -898,7 +902,7 @@ function getOutputStreamMode(outputSchema) {
898
902
  const mode = ports[0].mode;
899
903
  for (let i = 1;i < ports.length; i++) {
900
904
  if (ports[i].mode !== mode) {
901
- throw new Error(`Mixed stream modes on a single task are not supported: ` + `port "${ports[0].port}" is "${mode}" but port "${ports[i].port}" is "${ports[i].mode}"`);
905
+ return "mixed";
902
906
  }
903
907
  }
904
908
  return mode;
@@ -2279,13 +2283,24 @@ class TaskGraphRunner {
2279
2283
  const dataflows = this.graph.getTargetDataflows(node.id);
2280
2284
  for (const dataflow of dataflows) {
2281
2285
  const compatibility = dataflow.semanticallyCompatible(this.graph, dataflow);
2286
+ getLogger3().debug("pushOutputFromNodeToEdges", {
2287
+ dataflowId: dataflow.id,
2288
+ compatibility,
2289
+ resultsKeys: Object.keys(results)
2290
+ });
2282
2291
  if (compatibility === "static") {
2283
2292
  dataflow.setPortData(results);
2284
2293
  } else if (compatibility === "runtime") {
2285
2294
  const task = this.graph.getTask(dataflow.targetTaskId);
2286
2295
  const narrowed = await task.narrowInput({ ...results }, this.registry);
2287
2296
  dataflow.setPortData(narrowed);
2288
- } else {}
2297
+ } else {
2298
+ getLogger3().warn("pushOutputFromNodeToEdges", {
2299
+ dataflowId: dataflow.id,
2300
+ compatibility,
2301
+ resultsKeys: Object.keys(results)
2302
+ });
2303
+ }
2289
2304
  }
2290
2305
  }
2291
2306
  pushStatusFromNodeToEdges(graph, node, status) {
@@ -6195,4 +6210,4 @@ export {
6195
6210
  ConditionalTask
6196
6211
  };
6197
6212
 
6198
- //# debugId=AA716C41A75EE12C64756E2164756E21
6213
+ //# debugId=D8AFA9046FA8621E64756E2164756E21