@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.
@@ -1866,8 +1866,9 @@ var JobWorker = class {
1866
1866
  }
1867
1867
  const meta = registryEntry.meta;
1868
1868
  const HandlerClass = registryEntry.handlerClass;
1869
- const handler = await this.moduleRef.create(
1870
- HandlerClass
1869
+ const handler = this.moduleRef.get(
1870
+ HandlerClass,
1871
+ { strict: false }
1871
1872
  );
1872
1873
  const ctx = {
1873
1874
  input: claimed.input,
@@ -2429,8 +2430,9 @@ var MemoryJobOrchestrator = class {
2429
2430
  }
2430
2431
  const meta = registration.meta;
2431
2432
  const HandlerClass = registration.handlerClass;
2432
- const handler = this.moduleRef ? await this.moduleRef.create(
2433
- HandlerClass
2433
+ const handler = this.moduleRef ? this.moduleRef.get(
2434
+ HandlerClass,
2435
+ { strict: false }
2434
2436
  ) : new HandlerClass();
2435
2437
  const ctx = {
2436
2438
  input: run.input,
@@ -3073,7 +3075,7 @@ var JobWorkerOrchestrator = class {
3073
3075
  );
3074
3076
  }
3075
3077
  const workerOptions = {
3076
- pool: def.queue,
3078
+ pool: poolName,
3077
3079
  concurrency: def.concurrency,
3078
3080
  shutdownTimeoutMs: this.options.shutdownTimeoutMs ?? DEFAULT_SHUTDOWN_TIMEOUT_MS2
3079
3081
  };
@@ -3081,7 +3083,7 @@ var JobWorkerOrchestrator = class {
3081
3083
  worker.onModuleInit();
3082
3084
  this.workers.push(worker);
3083
3085
  this.logger.log(
3084
- `JobWorker started: pool='${def.queue}' concurrency=${def.concurrency}`
3086
+ `JobWorker started: pool='${poolName}' (queue='${def.queue}') concurrency=${def.concurrency}`
3085
3087
  );
3086
3088
  }
3087
3089
  }