@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
|
@@ -1036,8 +1036,9 @@ var JobWorker = class {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
const meta = registryEntry.meta;
|
|
1038
1038
|
const HandlerClass = registryEntry.handlerClass;
|
|
1039
|
-
const handler =
|
|
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 ?
|
|
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:
|
|
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
|
}
|