DeadLetterDispatch
DeadLetterDispatch = (
request,record) =>Promise<unknown> |unknown
Defined in: packages/pipeline-deadletter/src/dead-letter.redriver.ts:23
Sends a rebuilt request back for handling. It must settle only when the handling has finished, and reject when it failed.
It runs in the context of the caller of redrive, not in the context of the
failed request. When the handling reads the tenant, restore
record.tenantId here before the handling starts.
For an event, run only the handler that failed (record.handlerName):
publishing the event again would also rerun the handlers that succeeded.
Parameters
Section titled “Parameters”request
Section titled “request”unknown
record
Section titled “record”Returns
Section titled “Returns”Promise<unknown> | unknown