Skip to content

PmeProcessor

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/apps/pme-agent/src/queue/pme.processor.ts

Methods

MethodSignatureReturns
handleGeneratehandleGenerate(job: Job<PmeJobPayload>)Promise<RunResult>
handleStrategyhandleStrategy(job: Job<PmeJobPayload>)Promise<void>
handleFinalizehandleFinalize(job: Job<any>)Promise<void>
handleSiteGenhandleSiteGen(job: Job<PmeJobPayload & { outputDir: string }>)Promise<void>
onActiveonActive(job: Job<PmeJobPayload>)void
onCompletedonCompleted(job: Job<PmeJobPayload>)void
onFailedonFailed(job: Job<PmeJobPayload>, error: Error)void

Properties

PropertyType
progressEmitterProgressEmitter

Where it refuses work

  • PmeProcessor stops the work with an early return when options?.featureId.
  • PmeProcessor stops the work with an early return when !project.

When something fails

  • PmeProcessor handles failure in 13 places: it lets it reach the caller in 7, logs it and continues in 4, and turns it into a return value in 2.

Referenced By

  • QueueModule (MODULE_PROVIDES)

Was this page helpful?

Download as PDF