Skip to main content

sleep

Sleep for a period of time specified as a duration string. This processor will interpolate functions within the duration field, you can find a list of functions here.

# Config fields, showing default values
label: ""
sleep:
duration: 100us

This processor executes once per message batch. In order to execute once for each message of a batch place it within a for_each processor:

pipeline:
processors:
- for_each:
- sleep:
duration: ${! meta("sleep_for") }

Fields

duration

The duration of time to sleep for each execution. This field supports interpolation functions.

Type: string
Default: "100us"