@cadenza.io/service 1.9.23 → 1.9.25

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 CHANGED
@@ -3156,7 +3156,7 @@ var DatabaseController = class _DatabaseController {
3156
3156
  }
3157
3157
  createDatabaseTask(op, tableName, table, queryFunction, options) {
3158
3158
  var _a2, _b2, _c2, _d2;
3159
- CadenzaService.createTask(
3159
+ CadenzaService.createThrottledTask(
3160
3160
  `db${op.charAt(0).toUpperCase() + op.slice(1)}${tableName.charAt(0).toUpperCase() + tableName.slice(1)}`,
3161
3161
  (context, emit) => __async(null, null, function* () {
3162
3162
  var _a3, _b3, _c3, _d3, _e, _f, _g, _h;
@@ -3195,19 +3195,18 @@ var DatabaseController = class _DatabaseController {
3195
3195
  delete context.offset;
3196
3196
  return context;
3197
3197
  }),
3198
+ (context) => {
3199
+ var _a3, _b3, _c3;
3200
+ return (_c3 = (_b3 = (_a3 = context == null ? void 0 : context.__metadata) == null ? void 0 : _a3.__executionTraceId) != null ? _b3 : context == null ? void 0 : context.__executionTraceId) != null ? _c3 : "default";
3201
+ },
3198
3202
  `Auto-generated ${op} task for ${tableName}`,
3199
3203
  {
3200
3204
  isMeta: options.isMeta,
3201
3205
  retryCount: 5,
3202
3206
  retryDelay: 100,
3203
3207
  retryDelayFactor: 1.3,
3204
- concurrency: 50,
3205
3208
  validateInputContext: false,
3206
3209
  // TODO
3207
- getTagCallback: (context) => {
3208
- var _a3, _b3, _c3;
3209
- return (_c3 = (_b3 = (_a3 = context == null ? void 0 : context.__metadata) == null ? void 0 : _a3.__executionTraceId) != null ? _b3 : context == null ? void 0 : context.__executionTraceId) != null ? _c3 : "default";
3210
- },
3211
3210
  inputSchema: {
3212
3211
  // TODO
3213
3212
  type: "object",