@cadenza.io/core 1.11.9 → 1.11.11
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.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -658,7 +658,7 @@ function sleep(ms) {
|
|
|
658
658
|
|
|
659
659
|
// src/graph/execution/GraphNode.ts
|
|
660
660
|
var GraphNode = class _GraphNode extends SignalEmitter {
|
|
661
|
-
constructor(task, context, routineExecId, prevNodes = [], debug = false) {
|
|
661
|
+
constructor(task, context, routineExecId, prevNodes = [], debug = false, verbose = false) {
|
|
662
662
|
var _a;
|
|
663
663
|
super(
|
|
664
664
|
task.isMeta && !debug || task.isSubMeta || ((_a = context == null ? void 0 : context.getMetaData()) == null ? void 0 : _a.__isSubMeta)
|
|
@@ -680,6 +680,7 @@ var GraphNode = class _GraphNode extends SignalEmitter {
|
|
|
680
680
|
this.errored = false;
|
|
681
681
|
this.destroyed = false;
|
|
682
682
|
this.debug = false;
|
|
683
|
+
this.verbose = false;
|
|
683
684
|
this.id = uuid3();
|
|
684
685
|
this.task = task;
|
|
685
686
|
this.context = context;
|
|
@@ -689,6 +690,7 @@ var GraphNode = class _GraphNode extends SignalEmitter {
|
|
|
689
690
|
this.routineExecId = routineExecId;
|
|
690
691
|
this.splitGroupId = routineExecId;
|
|
691
692
|
this.debug = debug;
|
|
693
|
+
this.verbose = verbose;
|
|
692
694
|
}
|
|
693
695
|
setDebug(value) {
|
|
694
696
|
this.debug = value;
|
|
@@ -795,6 +797,7 @@ var GraphNode = class _GraphNode extends SignalEmitter {
|
|
|
795
797
|
data: {
|
|
796
798
|
signalName: context.__signalEmission.signalName,
|
|
797
799
|
taskId: this.task.id,
|
|
800
|
+
taskName: this.task.name,
|
|
798
801
|
taskExecutionId: this.id,
|
|
799
802
|
consumedAt: formatTimestamp(scheduledAt)
|
|
800
803
|
}
|
|
@@ -817,7 +820,7 @@ var GraphNode = class _GraphNode extends SignalEmitter {
|
|
|
817
820
|
filter: { uuid: this.routineExecId }
|
|
818
821
|
});
|
|
819
822
|
}
|
|
820
|
-
if (this.debug) {
|
|
823
|
+
if (this.debug && !this.task.isSubMeta && !this.context.getMetaData().__isSubMeta || this.verbose) {
|
|
821
824
|
this.log();
|
|
822
825
|
}
|
|
823
826
|
this.emitMetricsWithMetadata("meta.node.started", {
|
|
@@ -1155,7 +1158,8 @@ var GraphNode = class _GraphNode extends SignalEmitter {
|
|
|
1155
1158
|
this.context,
|
|
1156
1159
|
this.routineExecId,
|
|
1157
1160
|
[this],
|
|
1158
|
-
this.debug
|
|
1161
|
+
this.debug,
|
|
1162
|
+
this.verbose
|
|
1159
1163
|
);
|
|
1160
1164
|
}
|
|
1161
1165
|
consume(node) {
|
|
@@ -2207,6 +2211,7 @@ var GraphRunner = class extends SignalEmitter {
|
|
|
2207
2211
|
constructor(isMeta = false) {
|
|
2208
2212
|
super(isMeta);
|
|
2209
2213
|
this.debug = false;
|
|
2214
|
+
this.verbose = false;
|
|
2210
2215
|
this.isRunning = false;
|
|
2211
2216
|
this.isMeta = false;
|
|
2212
2217
|
this.id = uuid6();
|
|
@@ -2276,7 +2281,7 @@ var GraphRunner = class extends SignalEmitter {
|
|
|
2276
2281
|
}
|
|
2277
2282
|
allTasks.forEach(
|
|
2278
2283
|
(task) => this.currentRun.addNode(
|
|
2279
|
-
new GraphNode(task, ctx, routineExecId, [], this.debug)
|
|
2284
|
+
new GraphNode(task, ctx, routineExecId, [], this.debug, this.verbose)
|
|
2280
2285
|
)
|
|
2281
2286
|
);
|
|
2282
2287
|
}
|
|
@@ -2319,6 +2324,9 @@ var GraphRunner = class extends SignalEmitter {
|
|
|
2319
2324
|
setDebug(value) {
|
|
2320
2325
|
this.debug = value;
|
|
2321
2326
|
}
|
|
2327
|
+
setVerbose(value) {
|
|
2328
|
+
this.verbose = value;
|
|
2329
|
+
}
|
|
2322
2330
|
destroy() {
|
|
2323
2331
|
this.currentRun.destroy();
|
|
2324
2332
|
}
|
|
@@ -3055,6 +3063,7 @@ var Cadenza = class {
|
|
|
3055
3063
|
this.broker.setDebug(true);
|
|
3056
3064
|
this.broker.setVerbose(true);
|
|
3057
3065
|
this.runner.setDebug(true);
|
|
3066
|
+
this.runner.setVerbose(true);
|
|
3058
3067
|
}
|
|
3059
3068
|
}
|
|
3060
3069
|
/**
|