github.com/Jeffail/benthos/v3@v3.65.0/website/docs/components/conditions/processor_failed.md (about)

     1  ---
     2  title: processor_failed
     3  type: condition
     4  status: stable
     5  ---
     6  
     7  <!--
     8       THIS FILE IS AUTOGENERATED!
     9  
    10       To make changes please edit the contents of:
    11       lib/condition/processor_failed.go
    12  -->
    13  
    14  import Tabs from '@theme/Tabs';
    15  import TabItem from '@theme/TabItem';
    16  
    17  
    18  Returns true if a processing stage of a message has failed.
    19  
    20  
    21  <Tabs defaultValue="common" values={[
    22    { label: 'Common', value: 'common', },
    23    { label: 'Advanced', value: 'advanced', },
    24  ]}>
    25  
    26  <TabItem value="common">
    27  
    28  ```yaml
    29  # Common config fields, showing default values
    30  processor_failed: {}
    31  ```
    32  
    33  </TabItem>
    34  <TabItem value="advanced">
    35  
    36  ```yaml
    37  # All config fields, showing default values
    38  processor_failed:
    39    part: 0
    40  ```
    41  
    42  </TabItem>
    43  </Tabs>
    44  
    45  This condition is useful for dropping failed messages or creating dead letter
    46  queues, you can read more about these patterns [here](/docs/configuration/error_handling).
    47  
    48  ## Fields
    49  
    50  ### `part`
    51  
    52  The index of a message within a batch to test the condition against. This
    53  field is only applicable when batching messages
    54  [at the input level](/docs/configuration/batching).
    55  
    56  Indexes can be negative, and if so the part will be selected from the end
    57  counting backwards starting from -1.
    58  
    59  
    60  Type: `number`  
    61  Default: `0`  
    62  
    63