Skip to main content

RunJob

@forge/monorepo


@forge/monorepo / backend/src / RunJob

Type Alias: RunJob

RunJob = object

Defined in: backend/src/worker/main.ts:23

A unit of work off the queue. Mirrors the dispatcher's enqueueRun input.

The trace fields (#143) are optional and unused by the runtime itself — instrumentConsumer reads them. They live on this type rather than on a parallel one so the consumer seam stays a single shape; a second type would mean an adapter deciding which to produce.

Properties

enqueuedAt?

readonly optional enqueuedAt?: string

Defined in: backend/src/worker/main.ts:27


runId

readonly runId: RunId

Defined in: backend/src/worker/main.ts:25


tenantId

readonly tenantId: TenantId

Defined in: backend/src/worker/main.ts:24


traceparent?

readonly optional traceparent?: string

Defined in: backend/src/worker/main.ts:26