Kind: Class
Source: atloria-monorepo/apps/sdk-worker/src/app/sdk-gen/sdk-generate.worker.ts
The single consumer of 'sdk-generate' (this whole Deployment IS the worker — no env gating like the api-image workers need). One job = one language × one spec hash: load the project's CURRENT spec, verify it still matches the job's hash (content-addressing makes stale jobs a no-op, not a wrong artifact), run the pinned generator jar, zip, upload, flip the SdkArtifact row to READY.
Implements: OnModuleInit, OnModuleDestroy
Methods
| Method | Signature | Returns |
|---|---|---|
onModuleInit | onModuleInit() | void |
processJob | `processJob(job: Job | { data: SdkGenerateJob })` |
onModuleDestroy | onModuleDestroy() | Promise<void> |
When something fails
SdkGenerateWorkerhandles failure in 1 place: it lets it reach the caller in all 1.
Referenced By
SdkGenModule(MODULE_PROVIDES)
Was this page helpful?