@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
|
@@ -1866,8 +1866,9 @@ var JobWorker = class {
|
|
|
1866
1866
|
}
|
|
1867
1867
|
const meta = registryEntry.meta;
|
|
1868
1868
|
const HandlerClass = registryEntry.handlerClass;
|
|
1869
|
-
const handler =
|
|
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 ?
|
|
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:
|
|
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
|
}
|