@cadenza.io/service 2.0.5 → 2.0.6
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 +9 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -509,6 +509,9 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
509
509
|
).then(this.handleGlobalSignalRegistrationTask);
|
|
510
510
|
this.fullSyncTask = CadenzaService.createMetaRoutine("Full sync", [
|
|
511
511
|
CadenzaService.createCadenzaDBQueryTask("signal_to_task_map", {
|
|
512
|
+
filter: {
|
|
513
|
+
isGlobal: true
|
|
514
|
+
},
|
|
512
515
|
fields: ["signal_name", "service_name", "deleted"]
|
|
513
516
|
}).then(mergeSyncDataTask),
|
|
514
517
|
CadenzaService.createCadenzaDBQueryTask("service_instance", {
|
|
@@ -2314,9 +2317,11 @@ var GraphMetadataController = class _GraphMetadataController {
|
|
|
2314
2317
|
}
|
|
2315
2318
|
).doOn("meta.service_registry.deputy_registered").emits("global.meta.graph_metadata.deputy_relationship_created");
|
|
2316
2319
|
CadenzaService.createMetaTask("Handle task signal observation", (ctx) => {
|
|
2320
|
+
const isGlobal = ctx.signalName.startsWith("global.");
|
|
2317
2321
|
return {
|
|
2318
2322
|
data: {
|
|
2319
2323
|
...ctx.data,
|
|
2324
|
+
isGlobal,
|
|
2320
2325
|
serviceName: CadenzaService.serviceRegistry.serviceName
|
|
2321
2326
|
}
|
|
2322
2327
|
};
|
|
@@ -3973,6 +3978,7 @@ var GraphSyncController = class _GraphSyncController {
|
|
|
3973
3978
|
},
|
|
3974
3979
|
return: "name"
|
|
3975
3980
|
},
|
|
3981
|
+
isGlobal,
|
|
3976
3982
|
taskName: task.name,
|
|
3977
3983
|
taskVersion: task.version,
|
|
3978
3984
|
serviceName: CadenzaService.serviceRegistry.serviceName
|
|
@@ -4395,7 +4401,7 @@ var CadenzaService = class {
|
|
|
4395
4401
|
this.validateName(routineName);
|
|
4396
4402
|
const name = `${routineName} (Proxy)`;
|
|
4397
4403
|
options = {
|
|
4398
|
-
concurrency:
|
|
4404
|
+
concurrency: 100,
|
|
4399
4405
|
timeout: 0,
|
|
4400
4406
|
register: true,
|
|
4401
4407
|
isUnique: false,
|
|
@@ -4499,7 +4505,7 @@ var CadenzaService = class {
|
|
|
4499
4505
|
this.validateName(signalName);
|
|
4500
4506
|
this.validateName(serviceName);
|
|
4501
4507
|
options = {
|
|
4502
|
-
concurrency:
|
|
4508
|
+
concurrency: 100,
|
|
4503
4509
|
timeout: 0,
|
|
4504
4510
|
register: true,
|
|
4505
4511
|
isUnique: false,
|
|
@@ -4565,7 +4571,7 @@ var CadenzaService = class {
|
|
|
4565
4571
|
const description = `Executes a ${operation} on table ${tableName} in ${databaseServiceName ?? "default database service"}`;
|
|
4566
4572
|
const taskName = `db${operation.charAt(0).toUpperCase() + operation.slice(1)}${tableNameFormatted}`;
|
|
4567
4573
|
options = {
|
|
4568
|
-
concurrency:
|
|
4574
|
+
concurrency: 100,
|
|
4569
4575
|
timeout: 0,
|
|
4570
4576
|
register: true,
|
|
4571
4577
|
isUnique: false,
|