@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.
@@ -1151,8 +1151,9 @@ var MemoryJobOrchestrator = class {
1151
1151
  }
1152
1152
  const meta = registration.meta;
1153
1153
  const HandlerClass = registration.handlerClass;
1154
- const handler = this.moduleRef ? await this.moduleRef.create(
1155
- HandlerClass
1154
+ const handler = this.moduleRef ? this.moduleRef.get(
1155
+ HandlerClass,
1156
+ { strict: false }
1156
1157
  ) : new HandlerClass();
1157
1158
  const ctx = {
1158
1159
  input: run.input,
@@ -1993,8 +1994,9 @@ var JobWorker = class {
1993
1994
  }
1994
1995
  const meta = registryEntry.meta;
1995
1996
  const HandlerClass = registryEntry.handlerClass;
1996
- const handler = await this.moduleRef.create(
1997
- HandlerClass
1997
+ const handler = this.moduleRef.get(
1998
+ HandlerClass,
1999
+ { strict: false }
1998
2000
  );
1999
2001
  const ctx = {
2000
2002
  input: claimed.input,
@@ -2195,7 +2197,7 @@ var JobWorkerOrchestrator = class {
2195
2197
  );
2196
2198
  }
2197
2199
  const workerOptions = {
2198
- pool: def.queue,
2200
+ pool: poolName,
2199
2201
  concurrency: def.concurrency,
2200
2202
  shutdownTimeoutMs: this.options.shutdownTimeoutMs ?? DEFAULT_SHUTDOWN_TIMEOUT_MS2
2201
2203
  };
@@ -2203,7 +2205,7 @@ var JobWorkerOrchestrator = class {
2203
2205
  worker.onModuleInit();
2204
2206
  this.workers.push(worker);
2205
2207
  this.logger.log(
2206
- `JobWorker started: pool='${def.queue}' concurrency=${def.concurrency}`
2208
+ `JobWorker started: pool='${poolName}' (queue='${def.queue}') concurrency=${def.concurrency}`
2207
2209
  );
2208
2210
  }
2209
2211
  }