Wait
Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud. Availability This functionality is generally available and ready for production usage. Serverless interfaces and procedures might differ from classic Elastic Stack deployments. The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability This functionality is generally available and ready for production usage. This functionality is in technical preview and is ready for evaluation. Use with caution in production; it is not recommended for mission-critical workloads. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Specific Support terms apply. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Serverless
Generally available
Stack
GA
9.4+
…
Generally available since 9.4
Preview in 9.3
The wait step pauses workflow execution for a specified duration before continuing to the next step.
Use the following parameters to configure a wait step:
| Parameter | Required | Description |
|---|---|---|
name |
Yes | Unique step identifier |
type |
Yes | Step type - must be wait |
if
Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud.
Availability
Generally available
This functionality is generally available and ready for production usage.
Serverless interfaces and procedures might differ from classic Elastic Stack deployments.
The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats.
Availability
Generally available since 9.4
This functionality is generally available and ready for production usage.
Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments.
This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
|
No | Boolean or KQL expression that determines whether the step runs. When it's false, the workflow skips the pause and continues. Refer to Skip a single step for more information. |
with.duration |
Yes | Duration to wait before continuing (for example, "5s") |
steps:
- name: waitStep
type: wait
with:
duration: "5s"
The supported units are:
- Weeks:
w - Days:
d - Hours:
h - Minutes:
m - Seconds:
s - Milliseconds:
ms
Duration strings must follow the following format rules:
- Units must be in descending order:
1w2d3h4m5s6ms - Each unit can only appear once
- No spaces between number and unit
- Positive integer values only (no decimals, commas, negative values, or zero)
duration: "1w"
duration: "2d12h"
duration: "1d"
duration: "1h30m"
duration: "1h"
duration: "5m30s"
duration: "2m"
duration: "30s"
duration: "2s500ms"
duration: "500ms"
duration: "1w3d5h20m10s"
Wait for 10 seconds:
steps:
- name: delay
type: wait
with:
duration: "10s"
Wait for one minute after the API call completes:
steps:
- name: api-call
type: http
on-failure:
retry:
max-attempts: 3
delay: "5s"
- name: wait-before-next
type: wait
with:
duration: "1m"
Wait for one day:
steps:
- name: wait-one-day
type: wait
with:
duration: "1d"