Skip to content

Type Alias: QueueDefaults ​

QueueDefaults = object

The defaults of the consumers of a Queue (QueueAction, Queue.consume).

Properties ​

attempts? ​

optional attempts?: number

The deliveries of a message before it goes to the dead letter queue (the first one included).

Default ​

ts
3

backoff? ​

optional backoff?: Backoff

The wait before a message is delivered again after a failed attempt.

Default ​

ts
{type: 'exponential', delay: '1s', max: '1m'}

concurrency? ​

optional concurrency?: number

The messages processed at once by an instance, for each consumer.

Default ​

ts
1

group? ​

optional group?: string

The group of the consumers.

Default ​

the appId of the application


timeout? ​

optional timeout?: Duration

The processing time limit of a message (aborted, then retried).

Default ​

ts
no limit

Released under the MIT License.