Type Alias: JobOptions
JobOptions =
object
The options of a message (Queue.add).
Properties
attempts?
optionalattempts?:number
The attempts of this message, instead of the ones of its consumers.
backoff?
optionalbackoff?:Backoff
The backoff of this message, instead of the one of its consumers.
dedupe?
optionaldedupe?:boolean
Drop the message when one of the same jobId is kept by the queue (the driver must support it).
Default
falsedelay?
optionaldelay?:Duration
The delay before its first delivery.
Default
noneheaders?
optionalheaders?:Record<string,string>
Headers of the application (the prefix x-lkt- is reserved).
jobId?
optionaljobId?:string
The id of the message.
Default
a random UUIDkey?
optionalkey?:string
Its ordering key: the ordered consumers process the messages of a key in their order.
Default
nonepriority?
optionalpriority?:number
Its priority: the greater first (the driver must support it).
Default
0