Μετάβαση στο περιεχόμενο

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.

unknown

DeadLetterRecord

Promise<unknown> | unknown