@cadenza.io/service 1.25.2 → 1.25.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.d.mts CHANGED
@@ -22079,6 +22079,7 @@ declare class CadenzaService {
22079
22079
  * Creates and configures a signal transmission task that handles the transmission
22080
22080
  * of a specified signal to a target service with a set of customizable options.
22081
22081
  * This is only used for internal purposes and is not exposed to the business logic layer.
22082
+ * Signal transmission is throttled by execution trace id to ensure the transmission and reception order is preserved.
22082
22083
  *
22083
22084
  * @param {string} signalName - The name of the signal to be transmitted.
22084
22085
  * @param {string} serviceName - The name of the target service to transmit the signal to.
package/dist/index.d.ts CHANGED
@@ -22079,6 +22079,7 @@ declare class CadenzaService {
22079
22079
  * Creates and configures a signal transmission task that handles the transmission
22080
22080
  * of a specified signal to a target service with a set of customizable options.
22081
22081
  * This is only used for internal purposes and is not exposed to the business logic layer.
22082
+ * Signal transmission is throttled by execution trace id to ensure the transmission and reception order is preserved.
22082
22083
  *
22083
22084
  * @param {string} signalName - The name of the signal to be transmitted.
22084
22085
  * @param {string} serviceName - The name of the target service to transmit the signal to.
package/dist/index.js CHANGED
@@ -4266,6 +4266,7 @@ var CadenzaService = class {
4266
4266
  * Creates and configures a signal transmission task that handles the transmission
4267
4267
  * of a specified signal to a target service with a set of customizable options.
4268
4268
  * This is only used for internal purposes and is not exposed to the business logic layer.
4269
+ * Signal transmission is throttled by execution trace id to ensure the transmission and reception order is preserved.
4269
4270
  *
4270
4271
  * @param {string} signalName - The name of the signal to be transmitted.
4271
4272
  * @param {string} serviceName - The name of the target service to transmit the signal to.
@@ -4277,7 +4278,7 @@ var CadenzaService = class {
4277
4278
  import_core3.default.validateName(signalName);
4278
4279
  import_core3.default.validateName(serviceName);
4279
4280
  options = {
4280
- concurrency: 0,
4281
+ concurrency: 1,
4281
4282
  timeout: 0,
4282
4283
  register: true,
4283
4284
  isUnique: false,
@@ -4296,6 +4297,8 @@ var CadenzaService = class {
4296
4297
  ...options
4297
4298
  };
4298
4299
  options.isMeta = true;
4300
+ options.concurrency = 1;
4301
+ options.getTagCallback = (context) => context?.__metadata?.__executionTraceId ?? context?.__executionTraceId ?? "default";
4299
4302
  const name = `Transmission of signal: ${signalName}`;
4300
4303
  return new SignalTransmissionTask(
4301
4304
  name,