@cadenza.io/service 1.20.3 → 1.20.4
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 +2 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -266,6 +266,7 @@ var DatabaseTask = class extends DeputyTask {
|
|
|
266
266
|
__remoteRoutineName: this.remoteRoutineName,
|
|
267
267
|
__serviceName: this.serviceName,
|
|
268
268
|
__executionTraceId: metadata.__executionTraceId ?? null,
|
|
269
|
+
__localRoutineExecId: metadata.__routineExecId ?? metadata.__metadata?.__routineExecId,
|
|
269
270
|
__metadata: {
|
|
270
271
|
...metadata,
|
|
271
272
|
__deputyTaskName: this.name
|
|
@@ -933,6 +934,7 @@ var SignalTransmissionTask = class extends import_core2.Task {
|
|
|
933
934
|
__localTaskName: this.name,
|
|
934
935
|
__serviceName: this.serviceName,
|
|
935
936
|
__executionTraceId: metadata.__executionTraceId ?? null,
|
|
937
|
+
__localRoutineExecId: metadata.__routineExecId ?? metadata.__metadata?.__routineExecId,
|
|
936
938
|
__metadata: {
|
|
937
939
|
...metadata,
|
|
938
940
|
__deputyTaskName: this.name
|
|
@@ -2047,12 +2049,6 @@ var GraphMetadataController = class _GraphMetadataController {
|
|
|
2047
2049
|
},
|
|
2048
2050
|
return: "uuid"
|
|
2049
2051
|
}
|
|
2050
|
-
},
|
|
2051
|
-
awaitExists: {
|
|
2052
|
-
previousRoutineExecution: {
|
|
2053
|
-
table: "routine_execution",
|
|
2054
|
-
column: "uuid"
|
|
2055
|
-
}
|
|
2056
2052
|
}
|
|
2057
2053
|
}
|
|
2058
2054
|
};
|
|
@@ -2881,11 +2877,9 @@ var DatabaseController = class _DatabaseController {
|
|
|
2881
2877
|
let retries = 0;
|
|
2882
2878
|
const maxRetries = 20;
|
|
2883
2879
|
while (!exists && retries < maxRetries) {
|
|
2884
|
-
console.log("Exists check", fk, awaitExists);
|
|
2885
2880
|
const result2 = await client.query(
|
|
2886
2881
|
`SELECT EXISTS(SELECT 1 from ${table} WHERE ${column} = ${typeof value === "string" ? `'${value}'` : value}) AS "exists"`
|
|
2887
2882
|
);
|
|
2888
|
-
console.log("Exists check result", result2);
|
|
2889
2883
|
exists = result2.rows[0].exists;
|
|
2890
2884
|
if (exists) break;
|
|
2891
2885
|
retries++;
|