Skip to content

Type Alias: QueueEntrypointOptions ​

QueueEntrypointOptions = object

The options of queueEntrypoint.

Properties ​

middlewares? ​

optional middlewares?: MiddlewareDefinition[]

The middlewares of the adapter, run for each message before the ones of the controllers and the actions.


name? ​

optional name?: string

The name of the adapter (several adapters of one channel are told apart by it).


onError? ​

optional onError?: (error, action, context) => void | Promise<void>

Called for each failure of an action (retried or not), before the retry or the dead letter.

Parameters ​

error ​

unknown

action ​

ChannelActionInfo

context ​

QueueJobContext

Returns ​

void | Promise<void>

Default ​

the error written to the log of the application (log), else to the console

Released under the MIT License.