@cadenza.io/core 3.1.4 → 3.1.5
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 +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2370,7 +2370,7 @@ var GraphRunner = class extends SignalEmitter {
|
|
|
2370
2370
|
* @edge Empty tasks warns no-op.
|
|
2371
2371
|
*/
|
|
2372
2372
|
addTasks(tasks, context = {}) {
|
|
2373
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
2373
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
2374
2374
|
let _tasks = Array.isArray(tasks) ? tasks : [tasks];
|
|
2375
2375
|
if (_tasks.length === 0) {
|
|
2376
2376
|
console.warn("No tasks/routines to add.");
|
|
@@ -2425,7 +2425,7 @@ var GraphRunner = class extends SignalEmitter {
|
|
|
2425
2425
|
isMeta,
|
|
2426
2426
|
executionTraceId,
|
|
2427
2427
|
context: isNewTrace ? contextData.id : contextData,
|
|
2428
|
-
previousRoutineExecution: (_m = (_l = context.__metadata) == null ? void 0 : _l.__routineExecId) != null ?
|
|
2428
|
+
previousRoutineExecution: (_n = (_m = context.__localRoutineExecId) != null ? _m : (_l = context.__metadata) == null ? void 0 : _l.__routineExecId) != null ? _n : null,
|
|
2429
2429
|
// TODO: There is a chance this is not added to the database yet...
|
|
2430
2430
|
created: formatTimestamp(Date.now())
|
|
2431
2431
|
},
|
|
@@ -2491,6 +2491,7 @@ var GraphRunner = class extends SignalEmitter {
|
|
|
2491
2491
|
this.currentRun = new GraphRun(this.strategy);
|
|
2492
2492
|
}
|
|
2493
2493
|
}
|
|
2494
|
+
// TODO This should not live here. This is deputy related.
|
|
2494
2495
|
startRun(context, emit) {
|
|
2495
2496
|
var _a, _b, _c;
|
|
2496
2497
|
if (context.__task || context.__routine) {
|