Type Alias: QueueConsumerOptions
QueueConsumerOptions =
object
How a consumer processes a queue (Queue.consume; the options of QueueAction).
Properties
attempts?
optionalattempts?:number
The deliveries of a message before it goes to the dead letter queue.
Default
the defaults.attempts of the queue (3)
backoff?
optionalbackoff?:Backoff
The wait before a message is delivered again after a failed attempt.
Default
the defaults.backoff of the queue
concurrency?
optionalconcurrency?:number
The messages processed at once by this instance.
Default
the defaults.concurrency of the queue (1)
group?
optionalgroup?:string
The group: the instances of a group share the messages, each group receives every message.
Default
the defaults.group of the queue, else the appId of the application
onError?
optionalonError?: (error,context) =>void|Promise<void>
Called for each failure (retried or not), before the retry or the dead letter.
Parameters
error
unknown
context
Returns
void | Promise<void>
ordered?
optionalordered?:boolean
Process the messages of one key in their order, one at a time (the driver must support it).
Default
falseoutput?
optionaloutput?:string
The queue the value returned goes to, as a new message (an object; undefined sends nothing).
Default
nonetimeout?
optionaltimeout?:Duration
The processing time limit of a message (aborted, then retried).
Default
the defaults.timeout of the queue (no limit)