@cadenza.io/core 3.0.15 → 3.0.17

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/index.js CHANGED
@@ -811,8 +811,7 @@ var GraphNode = class _GraphNode extends SignalEmitter {
811
811
  this.emitMetricsWithMetadata("meta.node.mapped", {
812
812
  data: {
813
813
  taskExecutionId: this.id,
814
- previousTaskExecutionId: node.id,
815
- executionCount: "increment"
814
+ previousTaskExecutionId: node.id
816
815
  },
817
816
  filter: {
818
817
  taskName: this.task.name,
@@ -863,6 +862,7 @@ var GraphNode = class _GraphNode extends SignalEmitter {
863
862
  return this.executionStart;
864
863
  }
865
864
  end() {
865
+ var _a;
866
866
  if (this.executionStart === 0) {
867
867
  return 0;
868
868
  }
@@ -896,10 +896,12 @@ var GraphNode = class _GraphNode extends SignalEmitter {
896
896
  filter: { uuid: this.id }
897
897
  });
898
898
  if (this.graphDone()) {
899
- this.emitWithMetadata(
900
- `meta.node.graph_completed:${this.routineExecId}`,
901
- context
902
- );
899
+ const context2 = this.context.export();
900
+ if ((_a = context2.context.__metadata) == null ? void 0 : _a.__deputyExecId)
901
+ this.emitWithMetadata(
902
+ `meta.node.graph_completed:${context2.context.__metadata.__deputyExecId}`,
903
+ context2
904
+ );
903
905
  this.emitMetricsWithMetadata(
904
906
  `meta.node.ended_routine_execution:${this.routineExecId}`,
905
907
  {