Skip to content

Type Alias: QueueJobContext ​

QueueJobContext = object

What a consumer knows of the message it processes (Queue.consume; the QueueContext of an action).

Properties ​

attempt ​

attempt: number

The attempt: 1 for the first delivery.


attempts ​

attempts: number

The attempts allowed.


group ​

group: string

The group processing it.


headers ​

headers: Record<string, string>

The headers of the application.


jobId ​

jobId: string

The id of the message.


publishedAt ​

publishedAt: Date

When the message was added.


queue ​

queue: string

The queue.

Released under the MIT License.