Skip to main content

ExportWorkerDeps

@forge/monorepo


@forge/monorepo / backend/src / ExportWorkerDeps

Type Alias: ExportWorkerDeps

ExportWorkerDeps = object

Defined in: backend/src/worker/export.ts:33

Properties

config?

readonly optional config?: Partial<ExportWorkerConfig>

Defined in: backend/src/worker/export.ts:43


consumer

readonly consumer: ExportConsumer

Defined in: backend/src/worker/export.ts:35


contextFor

readonly contextFor: (job) => Promise<ExecutionContext> | ExecutionContext

Defined in: backend/src/worker/export.ts:42

The context a job renders as.

Required, and required to be per-job: the render re-reads the artifact through ArtifactService, so this is what makes an export carry the requester's entitlement rather than the worker's.

Parameters

job

ExportJob

Returns

Promise<ExecutionContext> | ExecutionContext


exports

readonly exports: ExportService

Defined in: backend/src/worker/export.ts:34


log?

readonly optional log?: (message, detail?) => void

Defined in: backend/src/worker/export.ts:44

Parameters

message

string

detail?

Readonly<Record<string, unknown>>

Returns

void


onError?

readonly optional onError?: (job, error) => void

Defined in: backend/src/worker/export.ts:46

Parameters

job

ExportJob

error

unknown

Returns

void


onOutcome?

readonly optional onOutcome?: (job, result) => void

Defined in: backend/src/worker/export.ts:45

Parameters

job

ExportJob

result

ArtifactExport

Returns

void