@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.
@@ -1774,8 +1774,9 @@ var MemoryJobOrchestrator = class {
1774
1774
  }
1775
1775
  const meta = registration.meta;
1776
1776
  const HandlerClass = registration.handlerClass;
1777
- const handler = this.moduleRef ? await this.moduleRef.create(
1778
- HandlerClass
1777
+ const handler = this.moduleRef ? this.moduleRef.get(
1778
+ HandlerClass,
1779
+ { strict: false }
1779
1780
  ) : new HandlerClass();
1780
1781
  const ctx = {
1781
1782
  input: run.input,
@@ -2616,8 +2617,9 @@ var JobWorker = class {
2616
2617
  }
2617
2618
  const meta = registryEntry.meta;
2618
2619
  const HandlerClass = registryEntry.handlerClass;
2619
- const handler = await this.moduleRef.create(
2620
- HandlerClass
2620
+ const handler = this.moduleRef.get(
2621
+ HandlerClass,
2622
+ { strict: false }
2621
2623
  );
2622
2624
  const ctx = {
2623
2625
  input: claimed.input,
@@ -2818,7 +2820,7 @@ var JobWorkerOrchestrator = class {
2818
2820
  );
2819
2821
  }
2820
2822
  const workerOptions = {
2821
- pool: def.queue,
2823
+ pool: poolName,
2822
2824
  concurrency: def.concurrency,
2823
2825
  shutdownTimeoutMs: this.options.shutdownTimeoutMs ?? DEFAULT_SHUTDOWN_TIMEOUT_MS2
2824
2826
  };
@@ -2826,7 +2828,7 @@ var JobWorkerOrchestrator = class {
2826
2828
  worker.onModuleInit();
2827
2829
  this.workers.push(worker);
2828
2830
  this.logger.log(
2829
- `JobWorker started: pool='${def.queue}' concurrency=${def.concurrency}`
2831
+ `JobWorker started: pool='${poolName}' (queue='${def.queue}') concurrency=${def.concurrency}`
2830
2832
  );
2831
2833
  }
2832
2834
  }