basalt / queue/src / JobEnvelope
Interface: JobEnvelope
Defined in: queue/src/driver.ts:112
The wire shape QueueManager.dispatch hands to QueueDriver.add as data: the app's payload plus a snapshot of the request context, so the context survives the hop to the worker. Drivers store it opaquely; only list() needs to open it — via readJobEnvelope.
Properties
context?
> optional context?: RequestContext
Defined in: queue/src/driver.ts:114
payload
> payload: unknown
Defined in: queue/src/driver.ts:113
sig?
> optional sig?: string
Defined in: queue/src/driver.ts:119
HMAC signature over the job name, payload and context — present only when the QueueManager has a signingKey. Drivers carry it opaquely.