@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.mjs
CHANGED
|
@@ -2333,7 +2333,7 @@ var GraphRunner = class extends SignalEmitter {
|
|
|
2333
2333
|
* @edge Empty tasks warns no-op.
|
|
2334
2334
|
*/
|
|
2335
2335
|
addTasks(tasks, context = {}) {
|
|
2336
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
2336
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
|
2337
2337
|
let _tasks = Array.isArray(tasks) ? tasks : [tasks];
|
|
2338
2338
|
if (_tasks.length === 0) {
|
|
2339
2339
|
console.warn("No tasks/routines to add.");
|
|
@@ -2388,7 +2388,7 @@ var GraphRunner = class extends SignalEmitter {
|
|
|
2388
2388
|
isMeta,
|
|
2389
2389
|
executionTraceId,
|
|
2390
2390
|
context: isNewTrace ? contextData.id : contextData,
|
|
2391
|
-
previousRoutineExecution: (_m = (_l = context.__metadata) == null ? void 0 : _l.__routineExecId) != null ?
|
|
2391
|
+
previousRoutineExecution: (_n = (_m = context.__localRoutineExecId) != null ? _m : (_l = context.__metadata) == null ? void 0 : _l.__routineExecId) != null ? _n : null,
|
|
2392
2392
|
// TODO: There is a chance this is not added to the database yet...
|
|
2393
2393
|
created: formatTimestamp(Date.now())
|
|
2394
2394
|
},
|
|
@@ -2454,6 +2454,7 @@ var GraphRunner = class extends SignalEmitter {
|
|
|
2454
2454
|
this.currentRun = new GraphRun(this.strategy);
|
|
2455
2455
|
}
|
|
2456
2456
|
}
|
|
2457
|
+
// TODO This should not live here. This is deputy related.
|
|
2457
2458
|
startRun(context, emit) {
|
|
2458
2459
|
var _a, _b, _c;
|
|
2459
2460
|
if (context.__task || context.__routine) {
|