@cadenza.io/core 3.9.0 → 3.9.2

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.mjs CHANGED
@@ -816,7 +816,7 @@ var GraphNode = class _GraphNode extends SignalEmitter {
816
816
  }
817
817
  });
818
818
  });
819
- if (context.__previousTaskExecutionId) {
819
+ if (!this.silent && context.__previousTaskExecutionId) {
820
820
  this.emitMetricsWithMetadata(
821
821
  "meta.node.detected_previous_task_execution",
822
822
  {
@@ -3237,11 +3237,11 @@ var Cadenza = class {
3237
3237
  throw new Error("Task or Routine name must be a non-empty string.");
3238
3238
  }
3239
3239
  }
3240
- static runTask(task, context) {
3241
- this.runner.run(task, context);
3240
+ static run(task, context) {
3241
+ this.runner?.run(task, context);
3242
3242
  }
3243
- static runRoutine(routine, context) {
3244
- this.runner.run(routine, context);
3243
+ static emit(event, data = {}) {
3244
+ this.broker?.emit(event, data);
3245
3245
  }
3246
3246
  /**
3247
3247
  * Creates a standard Task and registers it in the GraphRegistry.