@cadenza.io/service 1.9.48 → 1.9.49
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 +7 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -147,7 +147,7 @@ var DeputyTask = class extends import_core.Task {
|
|
|
147
147
|
resolve(true);
|
|
148
148
|
}
|
|
149
149
|
const processId = (0, import_uuid.v4)();
|
|
150
|
-
context.__deputyExecId = processId;
|
|
150
|
+
context.__metadata.__deputyExecId = processId;
|
|
151
151
|
emit("meta.deputy.delegation_requested", __spreadValues({}, context));
|
|
152
152
|
const progressTask = CadenzaService.createEphemeralMetaTask(
|
|
153
153
|
`On progress deputy ${this.remoteRoutineName}`,
|
|
@@ -1525,7 +1525,7 @@ var SocketController = class _SocketController {
|
|
|
1525
1525
|
try {
|
|
1526
1526
|
resultContext = yield socket.timeout((_a2 = ctx2.__timeout) != null ? _a2 : 0).emitWithAck("delegation", ctx2);
|
|
1527
1527
|
emit(
|
|
1528
|
-
`meta.socket_client.delegated:${ctx2.__deputyExecId}`,
|
|
1528
|
+
`meta.socket_client.delegated:${ctx2.__metadata.__deputyExecId}`,
|
|
1529
1529
|
resultContext
|
|
1530
1530
|
);
|
|
1531
1531
|
} catch (e) {
|
|
@@ -1870,11 +1870,14 @@ var GraphMetadataController = class _GraphMetadataController {
|
|
|
1870
1870
|
CadenzaService.createMetaTask(
|
|
1871
1871
|
"Handle task execution relationship creation",
|
|
1872
1872
|
(ctx) => {
|
|
1873
|
-
return
|
|
1873
|
+
return {
|
|
1874
|
+
data: __spreadProps(__spreadValues({}, ctx.data), {
|
|
1875
|
+
executionCount: "increment"
|
|
1876
|
+
}),
|
|
1874
1877
|
filter: __spreadProps(__spreadValues({}, ctx.filter), {
|
|
1875
1878
|
service_name: CadenzaService.serviceRegistry.serviceName
|
|
1876
1879
|
})
|
|
1877
|
-
}
|
|
1880
|
+
};
|
|
1878
1881
|
},
|
|
1879
1882
|
"Handles task execution relationship creation",
|
|
1880
1883
|
{ concurrency: 100, isSubMeta: true }
|