@pattern-stack/codegen 0.4.3 → 0.4.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.
@@ -1036,8 +1036,9 @@ var JobWorker = class {
1036
1036
  }
1037
1037
  const meta = registryEntry.meta;
1038
1038
  const HandlerClass = registryEntry.handlerClass;
1039
- const handler = await this.moduleRef.create(
1040
- HandlerClass
1039
+ const handler = this.moduleRef.get(
1040
+ HandlerClass,
1041
+ { strict: false }
1041
1042
  );
1042
1043
  const ctx = {
1043
1044
  input: claimed.input,
@@ -1599,8 +1600,9 @@ var MemoryJobOrchestrator = class {
1599
1600
  }
1600
1601
  const meta = registration.meta;
1601
1602
  const HandlerClass = registration.handlerClass;
1602
- const handler = this.moduleRef ? await this.moduleRef.create(
1603
- HandlerClass
1603
+ const handler = this.moduleRef ? this.moduleRef.get(
1604
+ HandlerClass,
1605
+ { strict: false }
1604
1606
  ) : new HandlerClass();
1605
1607
  const ctx = {
1606
1608
  input: run.input,
@@ -2243,7 +2245,7 @@ var JobWorkerOrchestrator = class {
2243
2245
  );
2244
2246
  }
2245
2247
  const workerOptions = {
2246
- pool: def.queue,
2248
+ pool: poolName,
2247
2249
  concurrency: def.concurrency,
2248
2250
  shutdownTimeoutMs: this.options.shutdownTimeoutMs ?? DEFAULT_SHUTDOWN_TIMEOUT_MS2
2249
2251
  };
@@ -2251,7 +2253,7 @@ var JobWorkerOrchestrator = class {
2251
2253
  worker.onModuleInit();
2252
2254
  this.workers.push(worker);
2253
2255
  this.logger.log(
2254
- `JobWorker started: pool='${def.queue}' concurrency=${def.concurrency}`
2256
+ `JobWorker started: pool='${poolName}' (queue='${def.queue}') concurrency=${def.concurrency}`
2255
2257
  );
2256
2258
  }
2257
2259
  }