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

     1  ---
     2  title: sleep
     3  type: processor
     4  status: stable
     5  categories: ["Utility"]
     6  ---
     7  
     8  <!--
     9       THIS FILE IS AUTOGENERATED!
    10  
    11       To make changes please edit the contents of:
    12       lib/processor/sleep.go
    13  -->
    14  
    15  import Tabs from '@theme/Tabs';
    16  import TabItem from '@theme/TabItem';
    17  
    18  
    19  Sleep for a period of time specified as a duration string. This processor will
    20  interpolate functions within the `duration` field, you can find a list
    21  of functions [here](/docs/configuration/interpolation#bloblang-queries).
    22  
    23  ```yaml
    24  # Config fields, showing default values
    25  label: ""
    26  sleep:
    27    duration: 100us
    28  ```
    29  
    30  This processor executes once per message batch. In order to execute once for
    31  each message of a batch place it within a
    32  [`for_each`](/docs/components/processors/for_each) processor:
    33  
    34  ```yaml
    35  pipeline:
    36    processors:
    37      - for_each:
    38        - sleep:
    39            duration: ${! meta("sleep_for") }
    40  ```
    41  
    42  ## Fields
    43  
    44  ### `duration`
    45  
    46  The duration of time to sleep for each execution.
    47  This field supports [interpolation functions](/docs/configuration/interpolation#bloblang-queries).
    48  
    49  
    50  Type: `string`  
    51  Default: `"100us"`  
    52  
    53