Skip to main content

reject_errored

Rejects messages that have failed their processing steps, resulting in nack behaviour at the input level, otherwise sends them to a child output.

# Config fields, showing default values
output:
label: ""
reject_errored: null # No default (required)

The routing of messages rejected by this output depends on the type of input it came from. For inputs that support propagating nacks upstream such as AMQP or NATS the message will be nacked. However, for inputs that are sequential such as files or Kafka the messages will simply be reprocessed from scratch.

Examples

The most straight forward use case for this output type is to nack messages that have failed their processing steps. In this example our mapping might fail, in which case the messages that failed are rejected and will be nacked by our input:

input:
nats_jetstream:
urls: [ nats://127.0.0.1:4222 ]
subject: foos.pending

pipeline:
processors:
- mutation: 'root.age = this.fuzzy.age.int64()'

output:
reject_errored:
nats_jetstream:
urls: [ nats://127.0.0.1:4222 ]
subject: foos.processed