Skip to content

SdkGenerateWorker

reference
1 min readUpdated

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

MethodSignatureReturns
onModuleInitonModuleInit()void
processJob`processJob(job: Job{ data: SdkGenerateJob })`
onModuleDestroyonModuleDestroy()Promise<void>

When something fails

  • SdkGenerateWorker handles failure in 1 place: it lets it reach the caller in all 1.

Referenced By

  • SdkGenModule (MODULE_PROVIDES)

Was this page helpful?

Download as PDF