sleep() function was removed in Flux 0.123.0.
sleep() function delays execution by a specified duration.
sleep(v: x, duration: 10s)
sleep() accepts piped-forward data and passes it on unmodified after the
If data is not piped-forward into
v to specify a stream of tables.
The examples below illustrate how.
Length of time to delay execution.
Delay execution in a chained query
from(bucket: "example-bucket") |> range(start: -1h) |> sleep(duration: 10s)
Delay execution using a stream variable
x = from(bucket: "example-bucket") |> range(start: -1h) sleep(v: x, duration: 10s)
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.