@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.
- package/CHANGELOG.md +11 -0
- package/dist/runtime/subsystems/bridge/bridge.module.js +8 -6
- package/dist/runtime/subsystems/bridge/bridge.module.js.map +1 -1
- package/dist/runtime/subsystems/bridge/index.js +8 -6
- package/dist/runtime/subsystems/bridge/index.js.map +1 -1
- package/dist/runtime/subsystems/index.js +8 -6
- package/dist/runtime/subsystems/index.js.map +1 -1
- package/dist/runtime/subsystems/jobs/index.js +8 -6
- package/dist/runtime/subsystems/jobs/index.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-orchestrator.memory-backend.js +3 -2
- package/dist/runtime/subsystems/jobs/job-orchestrator.memory-backend.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-worker.js +3 -2
- package/dist/runtime/subsystems/jobs/job-worker.js.map +1 -1
- package/dist/runtime/subsystems/jobs/job-worker.module.js +8 -6
- package/dist/runtime/subsystems/jobs/job-worker.module.js.map +1 -1
- package/dist/runtime/subsystems/jobs/jobs-domain.module.js +3 -2
- package/dist/runtime/subsystems/jobs/jobs-domain.module.js.map +1 -1
- package/dist/src/cli/index.js +42 -5
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/index.js +27 -2
- package/dist/src/index.js.map +1 -1
- package/package.json +1 -1
- package/runtime/subsystems/jobs/job-orchestrator.memory-backend.ts +6 -2
- package/runtime/subsystems/jobs/job-worker.module.ts +10 -2
- package/runtime/subsystems/jobs/job-worker.ts +15 -9
|
@@ -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 ?
|
|
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 =
|
|
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:
|
|
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
|
}
|