@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
|
@@ -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 ?
|
|
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 =
|
|
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:
|
|
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
|
}
|