Core Plugins and tasks Sleep

Core Plugins and tasks Sleep

Certified

Pause execution for a duration.

Renders an ISO-8601 duration (e.g., PT5S) and sleeps before continuing. Useful for backoff, pacing, or demo timing.

yaml
type: io.kestra.plugin.core.flow.Sleep
yaml
id: sleep
namespace: company.team

tasks:
  - id: sleep
    type: io.kestra.plugin.core.flow.Sleep
    duration: "PT5S"
Properties

Duration to sleep

The time duration in ISO-8601 format (e.g., PT5S for 5 seconds).

Reference (ref) of the pluginDefaults to apply to this task.