@cadenza.io/core 3.0.19 → 3.0.21
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1537,7 +1537,7 @@ var Task = class extends SignalEmitter {
|
|
|
1537
1537
|
this.getTag = (context) => getTagCallback(context, this);
|
|
1538
1538
|
this.throttled = true;
|
|
1539
1539
|
}
|
|
1540
|
-
if (register && !this.isHidden
|
|
1540
|
+
if (register && !this.isHidden) {
|
|
1541
1541
|
const { __functionString, __getTagCallback } = this.export();
|
|
1542
1542
|
this.emitWithMetadata("meta.task.created", {
|
|
1543
1543
|
data: {
|
|
@@ -1564,7 +1564,8 @@ var Task = class extends SignalEmitter {
|
|
|
1564
1564
|
// inputContextSchemaId: this.inputContextSchema,
|
|
1565
1565
|
// outputContextSchemaId: this.outputContextSchema,
|
|
1566
1566
|
},
|
|
1567
|
-
__taskInstance: this
|
|
1567
|
+
__taskInstance: this,
|
|
1568
|
+
__isSubMeta: this.isSubMeta
|
|
1568
1569
|
});
|
|
1569
1570
|
}
|
|
1570
1571
|
}
|
|
@@ -2174,6 +2175,7 @@ var GraphRegistry = class _GraphRegistry {
|
|
|
2174
2175
|
const { __name } = context;
|
|
2175
2176
|
for (const task of this.tasks.values()) {
|
|
2176
2177
|
if (task.name === __name) {
|
|
2178
|
+
console.log("TASK FOUND", task.name);
|
|
2177
2179
|
return { ...context, __task: task };
|
|
2178
2180
|
}
|
|
2179
2181
|
}
|
|
@@ -2438,8 +2440,9 @@ var GraphRunner = class extends SignalEmitter {
|
|
|
2438
2440
|
this.currentRun = new GraphRun(this.strategy);
|
|
2439
2441
|
}
|
|
2440
2442
|
}
|
|
2441
|
-
startRun(context) {
|
|
2443
|
+
startRun(context, emit) {
|
|
2442
2444
|
var _a, _b, _c;
|
|
2445
|
+
console.log("START RUN", context);
|
|
2443
2446
|
if (context.__task || context.__routine) {
|
|
2444
2447
|
const routine = (_a = context.__task) != null ? _a : context.__routine;
|
|
2445
2448
|
delete context.__task;
|
|
@@ -2451,6 +2454,7 @@ var GraphRunner = class extends SignalEmitter {
|
|
|
2451
2454
|
} else {
|
|
2452
2455
|
context.errored = true;
|
|
2453
2456
|
context.__error = "No routine or task defined.";
|
|
2457
|
+
emit("meta.runner.failed", context);
|
|
2454
2458
|
return false;
|
|
2455
2459
|
}
|
|
2456
2460
|
}
|